Andrew Nacin
b2bafcca6a
Script loader: Chunk the script names as passed to load-scripts.php into 128-character pieces. Avoids hitting a limit for the length of a single variable, such as suhosin.get.max_value_length which defaults to 512. fixes #22757 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23074 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 18:57:56 +00:00
Andrew Nacin
ee5bc76549
Add comments to time intervals we cannot express with the constants. Fix a comment. props SergeyBiryukov. fixes #20987 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22531 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-10 18:13:09 +00:00
Andrew Nacin
14592e8dd1
Do not use time constants in files the WP bootstrap is not or may not be loaded. see #20987 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21997 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 07:05:48 +00:00
Andrew Nacin
774a12be83
Introduce constants to allow for easier expression of time periods in seconds. Adds MINUTE_IN_SECONDS, HOUR_IN_SECONDS, DAY_IN_SECONDS, WEEK_IN_SECONDS, YEAR_IN_SECONDS. props nbachiyski, SergeyBiryukov. fixes #20987 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21996 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 05:26:19 +00:00
Andrew Nacin
b57365f7ff
If a plugin triggers the WP_Scripts constructor prior to init, fire wp_default_scripts()
...
then and again on init.
Only add our localized strings once we've fired init, in case we do have the situation
where we fire wp_default_scripts() twice.
Fixes issues where plugins or themes try to enqueue a default script handle prior to
init. Does not allow #19959 to regress.
see #20971 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21132 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 05:33:19 +00:00
Ryan Boren
5e76729992
One newline is enough.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:10:39 +00:00
Andrew Nacin
cce319d088
Define json_encode() in load-scripts.php. see #19524 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19597 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-14 23:02:42 +00:00
Ryan Boren
2d5559bb8f
Use stripos() instead of strpos( strtolower() ). Props hakre. see #16920
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17630 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-11 18:55:11 +00:00
Dion Hulse
6549a0aa0e
Revert [17608] adding back [17596] and actually include the dummy function this time. See #17057 Fixes #17050
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17609 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-06 00:42:07 +00:00
Andrew Nacin
9c37369cd5
Define home_url() in load-scripts.php. see #9008 , props ocean90.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14442 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 17:08:28 +00:00
Ryan Boren
19136bb073
Don't use deprecated functions. Props filosofo. fixes #11807
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12878 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-27 17:55:39 +00:00
Andrew Ozz
8066de0726
Check if $_SERVER['HTTP_ACCEPT_ENCODING'] is set before determining whether to compress scripts, props nacin, fixes #11169
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12214 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 09:46:07 +00:00
Mark Jaquith
c638e8d8de
_a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11204 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 19:43:53 +00:00
Ryan Boren
fe7c34b6fd
s/attribute_escape/attr/. see #9650
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11109 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-28 05:58:45 +00:00
Ryan Boren
12c7093645
Trailing whitespace cleanup
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11013 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 18:18:39 +00:00
Andrew Ozz
3ca11d47c9
Disable PHP error reporting in gears-manifest.php, load-scripts.php and load-styles.php since they don't load wp-settings, fix some notices
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10939 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-15 19:55:41 +00:00
Andrew Ozz
9b28447049
Correct ABSPATH in load-scripts.php, load-styles.php and gears-manifest.php, props hakre, fixes #9461
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10871 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-05 03:32:49 +00:00
Ryan Boren
5d8651d6f3
gettext comments. Props nbachiyski. see #9112
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10774 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-13 03:53:39 +00:00
Andrew Ozz
13d3219317
Detect when the server compresses output, see #8628
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10476 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-01 09:45:24 +00:00
Andrew Ozz
6e7efb1d97
Support output_handler = ob_gzhandler in script/style compressor, props DD32, fixes #9000
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10466 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-30 13:45:05 +00:00
Andrew Ozz
4d58681aa4
Improvements to the script loader: allows plugins to queue scripts for the front end head and footer, adds hooks for server side caching of compressed scripts, adds support for ENFORCE_GZIP constant (deflate is used by default since it's faster), see #8628 , fixes #8884
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10442 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-26 12:59:10 +00:00
Andrew Ozz
8e68af3087
Use gzip instead of deflate as more servers seem to understand it, add separate switch for disabling CSS compression
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10372 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-17 14:08:15 +00:00
Andrew Ozz
22eddf34d2
Split the script queue in head and footer part, concatenate and compress the default js and css, first run, see #8628
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10357 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-14 14:18:51 +00:00