Commit Graph

895 Commits

Author SHA1 Message Date
Andrew Nacin fa77333608 Some more phpdoc bits for functions.php. Props miqrogroove, fixes #12215
git-svn-id: https://develop.svn.wordpress.org/trunk@13210 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-19 01:08:39 +00:00
Andrew Nacin c95a891437 Fix var name conflict in delete_site_option(), see #10788
git-svn-id: https://develop.svn.wordpress.org/trunk@13158 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 23:30:31 +00:00
Dion Hulse a498c11da0 Update wp_get_http() to handle redirections on HEAD requests. Un-deprecate $red header to track total redirections. See #10624
git-svn-id: https://develop.svn.wordpress.org/trunk@13151 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 11:23:32 +00:00
Andrew Nacin 9d476c2d66 Add hooks across options and transients APIs. Focuses on site transients/options functions. Attempts to standardize where possible. See #10788
git-svn-id: https://develop.svn.wordpress.org/trunk@13148 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 10:39:46 +00:00
Andrew Nacin 396f458c51 More cleanups of the options/transients APIs. More inline documentation, better return values (always true on success, false on failure). Only call actions that are after wpdb delete/update operations if the operation was successful. See #10788
git-svn-id: https://develop.svn.wordpress.org/trunk@13142 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 07:21:15 +00:00
Andrew Nacin 79715e7a4c Whitespace, phpdoc, standard variable names, better return values for options and transients APIs. See #10788
git-svn-id: https://develop.svn.wordpress.org/trunk@13139 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 06:17:42 +00:00
Andrew Nacin 9e25bff4a0 Some phpdoc for functions.php. Props miqrogroove, see #12215
git-svn-id: https://develop.svn.wordpress.org/trunk@13102 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 08:59:04 +00:00
Ryan Boren b909bb1cf0 Add can_compress_scripts to core site options. Add phpdoc for wp_load_core_site_options(). see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13069 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-12 20:23:06 +00:00
Ryan Boren e213402692 Preload commonly loaded site options when running multisite without a persistent cache. Introduce wp_cache_reset() and call it instead of wp_cache_init() when re-initing after the blog ID chanages to avoid throwing out the entire cache. Pass cached site options through the site option filter when fetching.
git-svn-id: https://develop.svn.wordpress.org/trunk@13066 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-12 17:06:43 +00:00
Ryan Boren 65dae9a05f Don't query the timeout for core transients that do not have a timeout. Avoids useless queries on non-existent site options.
git-svn-id: https://develop.svn.wordpress.org/trunk@13056 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-11 19:43:22 +00:00
Ryan Boren 268d39dce7 Fix warning when installing.
git-svn-id: https://develop.svn.wordpress.org/trunk@13013 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 16:51:35 +00:00
Ron Rennick fdcbef3e84 restore shell wp-content/blogs.php & add deprecated warnings, props nacin, see #11742
git-svn-id: https://develop.svn.wordpress.org/trunk@12977 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-05 21:40:22 +00:00
Ron Rennick 9db8d54976 Reduce DB queries by half during MU signup, props donncha, see #12140
git-svn-id: https://develop.svn.wordpress.org/trunk@12973 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-05 17:59:24 +00:00
Mark Jaquith 5539653109 Use addslashes() instead of esc_sql() in add_magic_quotes() to avoid the pretense of DB association. props miqrogroove
git-svn-id: https://develop.svn.wordpress.org/trunk@12961 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 23:05:13 +00:00
Peter Westwood 94762869e2 Fix bug in _search_terms_tidy. Fixes #12060 for trunk props miqrogroove.
git-svn-id: https://develop.svn.wordpress.org/trunk@12958 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 21:54:24 +00:00
Ryan Boren 4fa746310c Remove first page and first comment filters. They're no longer needed. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12854 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 20:42:37 +00:00
Ryan Boren 3485776132 Integrate fix_upload_details() into wp_upload_dir(). see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12851 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 20:02:11 +00:00
Ryan Boren a56f033751 Merge mu_upload_dir() into wp_upload_dir(). see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12850 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 19:04:55 +00:00
Ryan Boren 15e5d91692 Deprecate graceful_fail(). see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12827 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-25 22:09:43 +00:00
Peter Westwood e5b9ba2a92 Allow for an alternative handler for wp_die to be used if required. See #11892.
git-svn-id: https://develop.svn.wordpress.org/trunk@12790 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-21 22:13:20 +00:00
Ryan Boren 2e46e81309 i18n fixes. Props nbachiyski. fixes #11954
git-svn-id: https://develop.svn.wordpress.org/trunk@12789 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-21 21:37:43 +00:00
Dion Hulse ee11169862 Fix WP_Filesystem_Direct::mkdir() when running under safe_mode on certain versions of PHP. Props remi. Fixes #10497
git-svn-id: https://develop.svn.wordpress.org/trunk@12741 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-17 02:57:59 +00:00
Dion Hulse 95166aa0cf Fix wp_mkdir_p() when running under safe_mode on certain PHP versions. Props Denis-de-Bernardy. Fixes #8830
git-svn-id: https://develop.svn.wordpress.org/trunk@12740 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-17 02:44:47 +00:00
Ryan Boren 8ef8b7bad5 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:11:12 +00:00
Ryan Boren 2f72315628 Always set default timezone to UTC. Do offsets on top of that to be portable across all environments. fixes #9588 #11672 #11665
git-svn-id: https://develop.svn.wordpress.org/trunk@12727 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 16:39:11 +00:00
Dion Hulse 76349e9b09 Add MP4 Audio Book format(.m4b) for uploads, Fix order of mimetypes. props demetris. fixes #11864
git-svn-id: https://develop.svn.wordpress.org/trunk@12717 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-13 10:06:02 +00:00
Ron Rennick 4b4316bdf8 add is_main_site() function, See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12714 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-12 21:52:51 +00:00
Ryan Boren a6798b1fb6 Mainstream things that don't need to be multisite only. Formatting cleanups. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12698 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-11 22:08:49 +00:00
Ron Rennick 8b4fbdb503 merge in multisite login, wp-includes, See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12697 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-11 21:49:40 +00:00
Peter Westwood d71468418b Pass $version to deprecated_argument_run action hook. See #11386.
git-svn-id: https://develop.svn.wordpress.org/trunk@12686 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-10 15:02:12 +00:00
Ryan Boren 9a9700dff4 Don't delete site transient if it doesn't have a timeout set. fixes #11844
git-svn-id: https://develop.svn.wordpress.org/trunk@12684 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-10 02:39:24 +00:00
Peter Westwood 2e2ad12171 Add missing version numbers to _deprecated_argument() calls.
Remove deprecated argument from xfn_check() calls.
Pass version number to deprecated_file_included, deprecated_function_run and deprecated_argument_run actions.
Fixes #11386 props nacin.

git-svn-id: https://develop.svn.wordpress.org/trunk@12680 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-09 10:03:55 +00:00
Ryan Boren fbbf18d6c7 Set result of insert
git-svn-id: https://develop.svn.wordpress.org/trunk@12669 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 20:09:04 +00:00
Peter Westwood b2360778ee Add support to get_terms() to allow 'include' & 'exclude' args to be arrays(). Fixes #11076 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@12658 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 08:44:45 +00:00
Peter Westwood 6422cc2d63 Deprecate get_alloptions(). Fixes #4915 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12656 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 08:29:55 +00:00
Ryan Boren dfe2e39c2c Deprecate argument. Never fallback to options table for user option requests. Props nacin. fixes #11615
git-svn-id: https://develop.svn.wordpress.org/trunk@12616 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 00:01:52 +00:00
Ryan Boren e7003d6c95 Make *_site_option() multisite awate. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12615 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 23:57:35 +00:00
Peter Westwood a752e6b561 Updates and improvements to _depreceated_argument. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12584 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 16:23:39 +00:00
Andrew Ozz a3da70dfac Add more document file type extensions, props Otto42, dd32, hakre, fixes #7225
git-svn-id: https://develop.svn.wordpress.org/trunk@12581 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 07:59:33 +00:00
Andrew Ozz 3fca305d99 Attempt to detect the correct post enclosure mime type, props josephscott, fixes #11668
git-svn-id: https://develop.svn.wordpress.org/trunk@12580 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 07:36:17 +00:00
Peter Westwood b607185b4e Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12537 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 11:12:04 +00:00
Peter Westwood e4295ece03 Add new function _deprecated_argument() to be used for marking arguments as deprecated so that with WP_DEBUG enabled developers can see they need to review and update their code. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12536 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 11:06:00 +00:00
Peter Westwood b13e2ac938 More phpdoc fixes. Depreceated version numbers for _deprecated_file() calls in wp-includes.
git-svn-id: https://develop.svn.wordpress.org/trunk@12535 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 10:53:34 +00:00
Peter Westwood 5f07ebb275 Fix phpDoc for _deprecated_file(). Always pass the full path from ABSPATH to _deprecated_file().
git-svn-id: https://develop.svn.wordpress.org/trunk@12534 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 10:48:32 +00:00
Ryan Boren 65658aacbf Do not use deprecated Etc timezones. Props miqrogroove. fixes #11558 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12507 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 14:16:36 +00:00
Peter Westwood 94a68dfd80 Revert [12485] as it breaks the functionality of is_serialized() and make more strings appear serialized. See #9930.
git-svn-id: https://develop.svn.wordpress.org/trunk@12486 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 13:42:58 +00:00
Peter Westwood 49ebdbb271 Much improved is_serialized() which catches serialized doubles. Fixes #9930 props vladimir_kolesnikov and dd32.
git-svn-id: https://develop.svn.wordpress.org/trunk@12485 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 13:10:06 +00:00
Andrew Ozz 65551e22c3 Check post and comment status before emptying trash, fixes #11442
git-svn-id: https://develop.svn.wordpress.org/trunk@12412 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-16 01:35:29 +00:00
Ryan Boren 922d26b596 Fix upload dir defaults. Props Denis-de-Bernardy. fixes #11276
git-svn-id: https://develop.svn.wordpress.org/trunk@12405 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 17:53:51 +00:00
Ryan Boren 1e123f43a7 Use ON DUPLICATE KEY UPDATE when inserting options to avoid duplicate entry errors. fixes #11437
git-svn-id: https://develop.svn.wordpress.org/trunk@12403 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 16:00:23 +00:00