Commit Graph

10 Commits

Author SHA1 Message Date
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
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
Andrew Nacin 1356037d95 Remove non-gzipped version of tinymce. Brace for impact. props azaozz. see #13307.
git-svn-id: https://develop.svn.wordpress.org/trunk@14765 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 21:05:16 +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
Andrew Ozz 7ec6c91918 Fall back to wp-tinymce.js if wp-tinymce.js.gz doesn't exist
git-svn-id: https://develop.svn.wordpress.org/trunk@11589 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-17 01:06:32 +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 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 38e3fc9d5a Concatenated and compressed versions of the default TinyMCE scripts
git-svn-id: https://develop.svn.wordpress.org/trunk@10369 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-16 12:58:38 +00:00