[wp-trac] [WordPress Trac] #17760: Allow partial builds to be even smaller

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 11 00:36:35 UTC 2011


#17760: Allow partial builds to be even smaller
--------------------------+-----------------------------
 Reporter:  nacin         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  2nd-opinion
--------------------------+-----------------------------
 Currently, wp-admin/includes/update-core.php requires three other files to
 also exist in the package: wp-settings.php, wp-admin/admin.php, and wp-
 includes/functions.php.

 While these files are critical, WordPress will fall on its head if any
 major file is missing.

 wp-includes/functions.php is pretty large, at 4556 lines, but even in a
 partial build where that file isn't chnaged, we need to include it.

 By replacing wp-includes/functions.php with version.php and readme.html a
 partial build from 3.1.1 to 3.1.2 dropped from 115 KB to 78 KB.

 While md5 will be on the table in v2 (and thus we can remove these
 checks), let's change update-core.php to validate the package via some
 smaller files and files that are always there.

 At a minimum, that means wp-includes/version.php and readme.html. We can
 leave in wp-settings.php and wp-admin/admin.php without much overhead.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17760>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list