[wp-trac] [WordPress Trac] #17340: Mark up script-loader.php versions for programmatic updating
WordPress Trac
wp-trac at lists.automattic.com
Fri May 6 18:51:57 UTC 2011
#17340: Mark up script-loader.php versions for programmatic updating
-------------------------+-----------------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
Whenever we update one of our dev CSS or JS files, we have to use YUI to
re-minify them, and bump their version number in script-loader.php. The
YUI part can be done programmatically, but it's not quite possible to bump
the script-loader.php version numbers without manual intervention. If the
number strings (yyyymmdd{optional-abcd suffix}) were marked up with PHP
comments in a standardized way, we could automate that step as well.
Since any script would have the file name in hand, I propose the
following:
{{{/*#wp-admin/css/wp-admin.dev.css#wp-
includes/css/fake.dev.css*/'20110203b'}}}
That is, a PHP comment block that immediately starts with a hash (#) and
is followed by one or more dev URLs that the version number applies to
(multiple ones separated by another hash), and immediately followed by a
version string enclosed in single quotes, in the format:
{{{/'([0-9]{4})([0-9]{2})([0-9]{2})([a-z]?)'/}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17340>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list