Commit Graph

325 Commits

Author SHA1 Message Date
Dion Hulse
9760997180 Rename the new 'themes_loaded' hook to 'after_setup_theme' to prevent confusion as to what it actually does & where its fired from. Fixes #12231
git-svn-id: https://develop.svn.wordpress.org/trunk@13214 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-19 10:00:00 +00:00
Andrew Nacin
5921acfa63 Bail early for favicon.ico requests so we don't load WP twice. Props azaozz, sivel. Fixes #3426
git-svn-id: https://develop.svn.wordpress.org/trunk@13205 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 23:41:50 +00:00
Andrew Nacin
ea0b2aacf0 Move deprecated pluggable functions to a new file to lower their profile. Also throw deprecated warnings if a plugin defines a deprecated pluggable function. See #11388
git-svn-id: https://develop.svn.wordpress.org/trunk@13204 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 23:17:06 +00:00
Andrew Nacin
8c98828c2f Rename wp-includes/blogs.php to ms-blogs.php. See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13159 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-15 01:08:23 +00:00
Dion Hulse
8f009529bb Add 'themes_loaded' hook to run after parent/child themes have been included. See #9015
git-svn-id: https://develop.svn.wordpress.org/trunk@13156 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 21:27:55 +00:00
Ryan Boren
3da1c8bb17 Add ability to query by domain and/or path to get_blog_details(). Improve blog details caching. Use get_blog_details() in ms-settings.php so queries are cached. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13126 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 23:09:54 +00:00
Ryan Boren
67bb939654 Move blogs table related functions to blogs.php. Include it before ms-settings.php so that caching API can be used instead of direct queries. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13125 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 22:35:11 +00:00
Peter Westwood
2b3837f55a Improve the implementation of the default constant defining functions for multisite. See #11881.
git-svn-id: https://develop.svn.wordpress.org/trunk@13065 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-12 08:22:34 +00:00
Peter Westwood
ab3afcf343 Improve function naming for plugin file discovery functions.
git-svn-id: https://develop.svn.wordpress.org/trunk@13064 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-12 07:59:11 +00:00
Peter Westwood
55190d6ac6 Improve the implementation of the default constant defining functions. See #11881.
git-svn-id: https://develop.svn.wordpress.org/trunk@13063 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-12 07:56:28 +00:00
Ryan Boren
2b1691cdf4 Cleanup network plugin loading. Props nacin. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12930 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-02 21:41:17 +00:00
Ron Rennick
45c254ac94 pass #2 change uploaded media rewrite rule, props nacin, see #11742
git-svn-id: https://develop.svn.wordpress.org/trunk@12926 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-02 16:32:19 +00:00
Ron Rennick
650dc9bc98 internalize uploaded media rewrite rule, see #11742
git-svn-id: https://develop.svn.wordpress.org/trunk@12924 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-02 02:17:33 +00:00
Ron Rennick
e1a54f07b8 reorganize code on ms startup. props nacin, see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12921 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-01 20:26:08 +00:00
Ron Rennick
014f5da245 rearrage multisite initialization, remove deprecated $wpmuBaseTablePrefix, props nacin, see #11881
git-svn-id: https://develop.svn.wordpress.org/trunk@12885 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-28 16:09:52 +00:00
Ryan Boren
df1095f560 unset temp vars so they don't pollute the global namespace.
git-svn-id: https://develop.svn.wordpress.org/trunk@12847 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 18:20:27 +00:00
Ryan Boren
a279ade5a0 phpdoc for load.php, return some includes to global scope. Props nacin. see #11881
git-svn-id: https://develop.svn.wordpress.org/trunk@12762 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-19 17:27:03 +00:00
Ryan Boren
20d3a58ee1 Coding style
git-svn-id: https://develop.svn.wordpress.org/trunk@12735 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 23:40:29 +00:00
Ryan Boren
3dfc463062 Coding style cleanups
git-svn-id: https://develop.svn.wordpress.org/trunk@12734 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:25:40 +00:00
Ryan Boren
42292a8c4d Cleanup wp-settings. Move functions needed at startup into load.php. Props nacin. see #11881
git-svn-id: https://develop.svn.wordpress.org/trunk@12732 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:03:41 +00:00
Peter Westwood
f3096d0ecb Tidy up the mu-plugins loading code to make it more readable.
Fix a couple of other tab/whitespace issues.

git-svn-id: https://develop.svn.wordpress.org/trunk@12713 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-12 21:28:33 +00:00
Ron Rennick
b7710fdf5a multi-site startup, See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12688 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-10 18:10:51 +00:00
Peter Westwood
7440e5516a Tidy up logic for defining WP_DEBUG so we only define it if it isn't already. Fixes #11837 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12685 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-10 10:57:01 +00:00
Ryan Boren
f0761d7cf6 MULTSITE must be true. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12671 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 20:27:50 +00:00
Ron Rennick
edea19e9ae Add compatability for MU to is_multisite() - See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12661 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 17:24:40 +00:00
Ryan Boren
b343c9ee06 Deprecate generate_random_password(). fixes #11746
git-svn-id: https://develop.svn.wordpress.org/trunk@12624 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 02:22:51 +00:00
Ryan Boren
ca3f286d96 Introduce is_multisite(). see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12609 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 20:19:35 +00:00
Andrew Ozz
7c0015e43e Move is_admin() to wp-settings.php so it's available when query.php is not included.
git-svn-id: https://develop.svn.wordpress.org/trunk@12393 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-14 00:38:05 +00:00
Andrew Ozz
83dbfe6dc1 Do not show PHP 5.3 deprecated errors when WP_DEBUG is set, props mrmist nacin, fixes #10533
git-svn-id: https://develop.svn.wordpress.org/trunk@12384 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-12 09:29:20 +00:00
Andrew Ozz
770fd776d7 Disable trash for attachments for now pending improvements in 3.0, fixes #11149
git-svn-id: https://develop.svn.wordpress.org/trunk@12377 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-12 06:40:16 +00:00
Mark Jaquith
ab97039f96 Post/Page Image was too generic a name. Post/Page Thumbnail is more clear, even if you can create very large thumbnail images if you so choose.
git-svn-id: https://develop.svn.wordpress.org/trunk@12351 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 06:14:36 +00:00
Mark Jaquith
51e25872a6 Standardize around "post image" instead of "post thumbnail"
git-svn-id: https://develop.svn.wordpress.org/trunk@12339 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 16:34:04 +00:00
Ryan Boren
cf79d843b6 Set default timezone. Props Denis-de-Bernardy. fixes #10940
git-svn-id: https://develop.svn.wordpress.org/trunk@12315 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-02 17:50:07 +00:00
Peter Westwood
89a9762c42 Ensure WP_DEBUG is always defined and simplify the checks on it. Fixes #11090 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12207 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 08:22:49 +00:00
Ryan Boren
9e1e57f5a8 Make sure WP_CACHE is true. Props nacin. fixes #10602
git-svn-id: https://develop.svn.wordpress.org/trunk@12192 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-16 18:53:57 +00:00
Peter Westwood
20bd817385 Introduce require_if_theme_supports(), move post thumbnails functions to there own include and only included them if the theme supports them. See #10928 and [12132]
git-svn-id: https://develop.svn.wordpress.org/trunk@12134 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-01 10:10:06 +00:00
Ryan Boren
944dad2c59 Introduce get/set/delete_site_transient(). Make theme_roots a site transient.
git-svn-id: https://develop.svn.wordpress.org/trunk@12128 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-29 21:53:57 +00:00
Mark Jaquith
254df719da Active plugin filter, plugin deactivation array_splice() protection. props apeatling. fixes #10839
git-svn-id: https://develop.svn.wordpress.org/trunk@11966 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-24 04:15:37 +00:00
Peter Westwood
482e701639 First pass commentmeta implementation. See #2659 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@11943 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-17 20:17:33 +00:00
Andrew Ozz
39f2c3c6f0 Send Retry-After header when in maintenance mode, props sirzooro, fixes #10439
git-svn-id: https://develop.svn.wordpress.org/trunk@11820 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-15 08:10:56 +00:00
Mark Jaquith
ebd60f5a91 Be consistent about slashing _REQUEST superglobal. props dd32. fixes #10360
git-svn-id: https://develop.svn.wordpress.org/trunk@11760 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-31 22:22:54 +00:00
Andrew Ozz
d9f8c67f2f Trash status updates for posts, pages, comments and attachments, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@11749 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-30 13:39:34 +00:00
Peter Westwood
7cda7bfd4d Add extra site debugging support to enable conditionally enable display_errors or a special error_log. Fixes #10202 props sivel.
git-svn-id: https://develop.svn.wordpress.org/trunk@11702 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-09 20:51:52 +00:00
Andrew Ozz
76449fcfd2 Improved $_SERVER['REQUEST_URI'] test for IIS, props ruslany, fixes #5682 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11662 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-28 00:45:12 +00:00
Ryan Boren
119195fda1 Load formatting.php before install redirect so that wp_redirect() can call _deep_replace(). see #10226
git-svn-id: https://develop.svn.wordpress.org/trunk@11622 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-22 20:10:02 +00:00
Ryan Boren
7146ff8ced Register default taxonomies before theme functions are loaded to satisfy themes that don't wait until init to call taxonomy functions. Default taxonomies are registered again during init so that translations are handled correctly. Props Denis-de-Bernardy. fixes #9644 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11573 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-15 21:53:51 +00:00
Ryan Boren
5fca0502fa Set REQUEST to contain GET + POST. No cookies. fixes #8814
git-svn-id: https://develop.svn.wordpress.org/trunk@11268 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 17:48:24 +00:00
Ryan Boren
29c684cf90 Revert accidental bits. see #9706
git-svn-id: https://develop.svn.wordpress.org/trunk@11265 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 17:32:16 +00:00
Ryan Boren
352827e01a Add timezone_string to populate_options. Props hakre. fixes #9706
git-svn-id: https://develop.svn.wordpress.org/trunk@11264 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 17:31:30 +00:00
Ryan Boren
b10853d492 Error reporting fixes. Props Denis-de-Bernardy, jacobsantos. fixes #9639 #8701
git-svn-id: https://develop.svn.wordpress.org/trunk@11128 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-29 20:18:44 +00:00