Skip to content
Newer
Older
100644 325 lines (261 sloc) 9.7 KB
0bc8613 b2config.php replaced with wp-config.sample.php
mikelittle authored Jun 12, 2003
1 <?php
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
2 /**
58d4742 More pedantry. "Setup" is not a verb. http://notaverb.com/setup
markjaquith authored Mar 17, 2010
3 * Used to set up and fix common variables and include
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
4 * the WordPress procedural and class library.
5 *
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
6 * Allows for some configuration in wp-config.php (see default-constants.php)
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
7 *
db78833 Mark a few files as needing to be parsable by PHP4 in order to show t…
nacin authored Jun 29, 2011
8 * @internal This file must be parsable by PHP4.
9 *
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
10 * @package WordPress
11 */
12
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
13 /**
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
14 * Stores the location of the WordPress directory of functions, classes, and core content.
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
15 *
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
16 * @since 1.0.0
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
17 */
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
18 define( 'WPINC', 'wp-includes' );
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
19
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
20 // Include files required for initialization.
21 require( ABSPATH . WPINC . '/load.php' );
22 require( ABSPATH . WPINC . '/default-constants.php' );
23 require( ABSPATH . WPINC . '/version.php' );
5c2f29c Increase memory limit. Props darkdragon. see #3141
ryan authored Jan 29, 2008
24
80f4e83 Introduce WP_MAX_MEMORY_LIMIT constant for the high memory limit we s…
westi authored Apr 28, 2011
25 // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.
60dc67e Improve the implementation of the default constant defining functions…
westi authored Feb 12, 2010
26 wp_initial_constants( );
5c2f29c Increase memory limit. Props darkdragon. see #3141
ryan authored Jan 29, 2008
27
ad1e1df wp_check_php_mysql_versions() during setup and install. see #17934.
nacin authored Jun 29, 2011
28 // Check for the required PHP version and for the MySQL extension or a database drop-in.
29 wp_check_php_mysql_versions();
30
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
31 // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
1fd123a Use ini_set instead of set_magic_quotes_runtime() to prevent silenced…
nacin authored Aug 15, 2011
32 @ini_set( 'magic_quotes_runtime', 0 );
33 @ini_set( 'magic_quotes_sybase', 0 );
6e181bb Multi-byte character safe excerpting from nbachiyski. fixes #6077
ryan authored Mar 3, 2008
34
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
35 // Set default timezone in PHP 5.
36 if ( function_exists( 'date_default_timezone_set' ) )
37 date_default_timezone_set( 'UTC' );
2371043 Set default timezone. Props Denis-de-Bernardy. fixes #10940
ryan authored Dec 2, 2009
38
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
39 // Turn register_globals off.
321c310 Remove trailing whitespace
ryan authored Sep 3, 2007
40 wp_unregister_GLOBALS();
d4f95b7 Accidental commit. Props Nazgul. fixes #4437
rob1n authored Jun 12, 2007
41
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
42 // Ensure these global variables do not exist so they do not interfere with WordPress.
2ec0d05 Fix 'timeinfo' cache invalidation. Fixes #14922
scribu authored Nov 22, 2010
43 unset( $wp_filter, $cache_lastcommentmodified );
376ec4d Tweak
matt authored Aug 9, 2005
44
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
45 // Standardize $_SERVER variables across setups.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
46 wp_fix_server_vars();
c50e7da Fixes #1591 (again)
matt authored Nov 10, 2005
47
540eaaf I before E, except after C. props jkudish, fixes #16915.
nacin authored Mar 21, 2011
48 // Check if we have received a request due to missing favicon.ico
a60b801 Bail early for favicon.ico requests so we don't load WP twice. Props …
nacin authored Feb 18, 2010
49 wp_favicon_request();
50
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
51 // Check if we're in maintenance mode.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
52 wp_maintenance();
0f7bb42 timer_stop() wanted to be near timer_start().
ryan authored Sep 7, 2006
53
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
54 // Start loading timer.
551e52f Code cleanup and some fixes from the WP Japan folks.
saxmatt authored Oct 4, 2004
55 timer_start();
da4a0d9 Fix for empty plugin strings, class include moved for timing.
saxmatt authored Aug 10, 2004
56
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
57 // Check if we're in WP_DEBUG mode.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
58 wp_debug_mode();
9b09572 Turn down error reporting.
saxmatt authored Jan 2, 2004
59
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
60 // For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
61 if ( WP_CACHE )
7843826 Don't silence inclusion of advanced-cache.php for WP_DEBUG. fixes #13…
nacin authored May 2, 2010
62 WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
70a449d Allow for plugins to kick in before everything if define in wp-config
saxmatt authored Feb 15, 2005
63
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
64 // Define WP_LANG_DIR if not set.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
65 wp_set_lang_dir();
0c6394a Stop fatal error in post revisions when setting the include path is d…
azaozz authored Aug 5, 2008
66
98e8daa Add ability to query by domain and/or path to get_blog_details(). Imp…
ryan authored Feb 13, 2010
67 // Load early WordPress files.
b1f3de7 Restore compat.php includes. see #16918
markjaquith authored Apr 7, 2011
68 require( ABSPATH . WPINC . '/compat.php' );
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
69 require( ABSPATH . WPINC . '/functions.php' );
731bf1f Begin the dissolution of classes.php. see #10287.
nacin authored Oct 30, 2010
70 require( ABSPATH . WPINC . '/class-wp.php' );
71 require( ABSPATH . WPINC . '/class-wp-error.php' );
34a2856 Require plugin.php earlier so all pluggables can get at it. Props ske…
ryan authored Oct 14, 2010
72 require( ABSPATH . WPINC . '/plugin.php' );
81ed9a7 Introduce wp_load_translations_early(), which can be used before the …
nacin authored Jan 26, 2012
73 require( ABSPATH . WPINC . '/pomo/mo.php' );
b36471d Use wp_die() for WPDB bails. Send 500 response and no-cache headers s…
markjaquith authored Sep 13, 2007
74
9e97f25 Always include wp-db.php. Prevents a conditional include and allows d…
nacin authored Sep 20, 2010
75 // Include the wpdb class and, if present, a db.php database drop-in.
658d22d Store field types in wpdb object. Props mdawaffe. see #7171
ryan authored Apr 10, 2009
76 require_wp_db();
77
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
78 // Set the database table prefix and the format specifiers for database table columns.
97f9966 Explicitly globalize $table_prefix in wp-settings.php in case WordPre…
nacin authored Oct 18, 2011
79 $GLOBALS['table_prefix'] = $table_prefix;
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
80 wp_set_wpdb_vars();
d2110af Define wp_clone() before loading the cache.
ryan authored Apr 15, 2009
81
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
82 // Start the WordPress object cache, or an external object cache if the drop-in is present.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
83 wp_start_object_cache();
1c55a42 Move is_admin() to wp-settings.php so it's available when query.php i…
azaozz authored Dec 14, 2009
84
81ed9a7 Introduce wp_load_translations_early(), which can be used before the …
nacin authored Jan 26, 2012
85 // Attach the default filters.
98e8daa Add ability to query by domain and/or path to get_blog_details(). Imp…
ryan authored Feb 13, 2010
86 require( ABSPATH . WPINC . '/default-filters.php' );
87
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
88 // Initialize multisite if enabled.
731eada Move blogs table related functions to blogs.php. Include it before ms…
ryan authored Feb 13, 2010
89 if ( is_multisite() ) {
dfe271c Rename wp-includes/blogs.php to ms-blogs.php. See #11644
nacin authored Feb 15, 2010
90 require( ABSPATH . WPINC . '/ms-blogs.php' );
493a307 rearrage multisite initialization, remove deprecated $wpmuBaseTablePr…
wpmuguru authored Jan 28, 2010
91 require( ABSPATH . WPINC . '/ms-settings.php' );
751a7d1 Prevent half-baked loading of MS that would happen when constants are…
nacin authored Apr 5, 2010
92 } elseif ( ! defined( 'MULTISITE' ) ) {
93 define( 'MULTISITE', false );
731eada Move blogs table related functions to blogs.php. Include it before ms…
ryan authored Feb 13, 2010
94 }
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
95
db8c49d Call register_shutdown_function() for SHORTINIT. Props jtclarke. fixe…
ryan authored Jul 21, 2011
96 register_shutdown_function( 'shutdown_action_hook' );
97
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
98 // Stop most of WordPress from being loaded if we just want the basics.
99 if ( SHORTINIT )
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
100 return false;
101
e76ff17 It's L10n (or i18n). Not too sure what l18n stands for. (Typo from [1…
nacin authored Jan 26, 2012
102 // Load the L10n library.
81ed9a7 Introduce wp_load_translations_early(), which can be used before the …
nacin authored Jan 26, 2012
103 require_once( ABSPATH . WPINC . '/l10n.php' );
1bd4057 Bug fixes
saxmatt authored Dec 19, 2004
104
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
105 // Run the installer if WordPress is not installed.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
106 wp_not_installed();
1bd4057 Bug fixes
saxmatt authored Dec 19, 2004
107
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
108 // Load most of WordPress.
298bee3 Remove the classes.php include and delay the lesser important remnant…
nacin authored Oct 30, 2010
109 require( ABSPATH . WPINC . '/class-wp-walker.php' );
110 require( ABSPATH . WPINC . '/class-wp-ajax-response.php' );
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
111 require( ABSPATH . WPINC . '/formatting.php' );
112 require( ABSPATH . WPINC . '/capabilities.php' );
113 require( ABSPATH . WPINC . '/query.php' );
114 require( ABSPATH . WPINC . '/theme.php' );
115 require( ABSPATH . WPINC . '/user.php' );
116 require( ABSPATH . WPINC . '/meta.php' );
117 require( ABSPATH . WPINC . '/general-template.php' );
118 require( ABSPATH . WPINC . '/link-template.php' );
119 require( ABSPATH . WPINC . '/author-template.php' );
120 require( ABSPATH . WPINC . '/post.php' );
121 require( ABSPATH . WPINC . '/post-template.php' );
122 require( ABSPATH . WPINC . '/category.php' );
123 require( ABSPATH . WPINC . '/category-template.php' );
124 require( ABSPATH . WPINC . '/comment.php' );
125 require( ABSPATH . WPINC . '/comment-template.php' );
126 require( ABSPATH . WPINC . '/rewrite.php' );
127 require( ABSPATH . WPINC . '/feed.php' );
128 require( ABSPATH . WPINC . '/bookmark.php' );
129 require( ABSPATH . WPINC . '/bookmark-template.php' );
130 require( ABSPATH . WPINC . '/kses.php' );
131 require( ABSPATH . WPINC . '/cron.php' );
132 require( ABSPATH . WPINC . '/deprecated.php' );
133 require( ABSPATH . WPINC . '/script-loader.php' );
134 require( ABSPATH . WPINC . '/taxonomy.php' );
135 require( ABSPATH . WPINC . '/update.php' );
136 require( ABSPATH . WPINC . '/canonical.php' );
137 require( ABSPATH . WPINC . '/shortcodes.php' );
138 require( ABSPATH . WPINC . '/media.php' );
139 require( ABSPATH . WPINC . '/http.php' );
1f93931 Always include class-http.php. see #12990
ryan authored Apr 13, 2010
140 require( ABSPATH . WPINC . '/class-http.php' );
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
141 require( ABSPATH . WPINC . '/widgets.php' );
d5074db Reorg nav menu files. see #11817
ryan authored Feb 24, 2010
142 require( ABSPATH . WPINC . '/nav-menu.php' );
143 require( ABSPATH . WPINC . '/nav-menu-template.php' );
b500820 Admin bar, first pass. see #14772
ryan authored Sep 27, 2010
144 require( ABSPATH . WPINC . '/admin-bar.php' );
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
145
146 // Load multisite-specific files.
f5e1226 Introduce is_multisite(). see #11644
ryan authored Jan 6, 2010
147 if ( is_multisite() ) {
687e7d1 Force fatal errors via require() if we're missing something we need. …
nacin authored Feb 20, 2010
148 require( ABSPATH . WPINC . '/ms-functions.php' );
149 require( ABSPATH . WPINC . '/ms-default-filters.php' );
150 require( ABSPATH . WPINC . '/ms-deprecated.php' );
f5e1226 Introduce is_multisite(). see #11644
ryan authored Jan 6, 2010
151 }
152
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
153 // Define constants that rely on the API to obtain the default value.
154 // Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in.
60dc67e Improve the implementation of the default constant defining functions…
westi authored Feb 12, 2010
155 wp_plugin_directory_constants( );
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
156
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
157 // Load must-use plugins.
0206ffe Improve function naming for plugin file discovery functions.
westi authored Feb 12, 2010
158 foreach ( wp_get_mu_plugins() as $mu_plugin ) {
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
159 include_once( $mu_plugin );
160 }
1592ca9 Cleanup network plugin loading. Props nacin. see #11644
ryan authored Feb 2, 2010
161 unset( $mu_plugin );
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
162
86c1732 Load network plugins for wp-activate.php. Restore MU load order. Prop…
ryan authored Nov 24, 2010
163 // Load network activated plugins.
164 if ( is_multisite() ) {
165 foreach( wp_get_active_network_plugins() as $network_plugin ) {
166 include_once( $network_plugin );
167 }
168 unset( $network_plugin );
169 }
170
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
171 do_action( 'muplugins_loaded' );
3bf4ed1 Support mu-plugins for 'Must Use' autoload plugins
ryan authored Mar 7, 2009
172
ff140f1 Move ms_site_check() to after init and allow super admins to view blo…
ryan authored Apr 23, 2010
173 if ( is_multisite() )
b20c3c4 Improve the implementation of the default constant defining functions…
westi authored Feb 12, 2010
174 ms_cookie_constants( );
9771ec5 First cut and better admin SSL support. see #7001
ryan authored May 27, 2008
175
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
176 // Define constants after multisite is loaded. Cookie-related constants may be overridden in ms_network_cookies().
60dc67e Improve the implementation of the default constant defining functions…
westi authored Feb 12, 2010
177 wp_cookie_constants( );
178
179 // Define and enforce our SSL constants
180 wp_ssl_constants( );
41afea2 Let advanced users override cookies.
matt authored Jul 18, 2005
181
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
182 // Create common globals.
183 require( ABSPATH . WPINC . '/vars.php' );
edc7d7c Installation cleanup.
saxmatt authored Dec 31, 2003
184
9826fcb Call create_initial_post_types() before plugins and themes are loaded…
ryan authored Apr 8, 2010
185 // Make taxonomies and posts available to plugins and themes.
186 // @plugin authors: warning: these get registered again on the init hook.
ae5848d Register default taxonomies before theme functions are loaded to sati…
ryan authored Jun 15, 2009
187 create_initial_taxonomies();
9826fcb Call create_initial_post_types() before plugins and themes are loaded…
ryan authored Apr 8, 2010
188 create_initial_post_types();
ae5848d Register default taxonomies before theme functions are loaded to sati…
ryan authored Jun 15, 2009
189
a6cdc2d Register the default theme dir in wp-settings.php so that it is regis…
ryan authored Nov 17, 2010
190 // Register the default theme directory root
191 register_theme_directory( get_theme_root() );
192
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
193 // Load active plugins.
0206ffe Improve function naming for plugin file discovery functions.
westi authored Feb 12, 2010
194 foreach ( wp_get_active_and_valid_plugins() as $plugin )
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
195 include_once( $plugin );
196 unset( $plugin );
1127059 shutdown action hook.
saxmatt authored Apr 19, 2004
197
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
198 // Load pluggable functions.
199 require( ABSPATH . WPINC . '/pluggable.php' );
54c4ac3 Move deprecated pluggable functions to a new file to lower their prof…
nacin authored Feb 18, 2010
200 require( ABSPATH . WPINC . '/pluggable-deprecated.php' );
08b02d9 Move plugin replacebale functions to pluggable-functions.php. http://…
ryan authored Apr 4, 2005
201
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
202 // Set internal encoding.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
203 wp_set_internal_encoding();
6e181bb Multi-byte character safe excerpting from nbachiyski. fixes #6077
ryan authored Mar 3, 2008
204
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
205 // Run wp_cache_postload() if object cache is enabled and the function exists.
206 if ( WP_CACHE && function_exists( 'wp_cache_postload' ) )
70a449d Allow for plugins to kick in before everything if define in wp-config
saxmatt authored Feb 15, 2005
207 wp_cache_postload();
208
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
209 do_action( 'plugins_loaded' );
70a449d Allow for plugins to kick in before everything if define in wp-config
saxmatt authored Feb 15, 2005
210
60dc67e Improve the implementation of the default constant defining functions…
westi authored Feb 12, 2010
211 // Define constants which affect functionality if not already defined.
212 wp_functionality_constants( );
91efba1 Use wpdb->escape instead of addslashes to prepare DB bound data.
ryan authored Jul 5, 2005
213
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
214 // Add magic quotes and set up $_REQUEST ( $_GET + $_POST )
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
215 wp_magic_quotes();
a431376 Be consistent about slashing _REQUEST superglobal. props dd32. fixes …
markjaquith authored Jul 31, 2009
216
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
217 do_action( 'sanitize_comment_cookies' );
1034767 wp_get_current_commenter()
ryan authored Jun 22, 2006
218
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
219 /**
220 * WordPress Query object
221 * @global object $wp_the_query
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
222 * @since 2.0.0
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
223 */
7baf775 Assigning the return value of new by reference is deprecated. Props h…
ryan authored Mar 30, 2011
224 $wp_the_query = new WP_Query();
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
225
226 /**
227 * Holds the reference to @see $wp_the_query
228 * Use this global for WordPress queries
229 * @global object $wp_query
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
230 * @since 1.5.0
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
231 */
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
232 $wp_query =& $wp_the_query;
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
233
234 /**
235 * Holds the WordPress Rewrite object for creating pretty URLs
236 * @global object $wp_rewrite
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
237 * @since 1.5.0
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
238 */
e7a3480 Globalize wp_rewrite in wp-settings. props mrtorrent, fixes #17749.
nacin authored Dec 20, 2011
239 $GLOBALS['wp_rewrite'] = new WP_Rewrite();
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
240
241 /**
242 * WordPress Object
243 * @global object $wp
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
244 * @since 2.0.0
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
245 */
7baf775 Assigning the return value of new by reference is deprecated. Props h…
ryan authored Mar 30, 2011
246 $wp = new WP();
1baf503 Break blog header up into functional chunks. Stick it all in a WP cla…
ryan authored Jun 10, 2005
247
1eab8fc Introduce singleton widget factory
ryan authored Mar 17, 2009
248 /**
249 * WordPress Widget Factory Object
250 * @global object $wp_widget_factory
251 * @since 2.8.0
252 */
abe8b47 Explicitly globalize some variables, so that unit tests can run WordP…
nbachiyski authored Aug 11, 2011
253 $GLOBALS['wp_widget_factory'] = new WP_Widget_Factory();
1eab8fc Introduce singleton widget factory
ryan authored Mar 17, 2009
254
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
255 do_action( 'setup_theme' );
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
256
60dc67e Improve the implementation of the default constant defining functions…
westi authored Feb 12, 2010
257 // Define the template related constants.
258 wp_templating_constants( );
98aa7f5 Rearrange load order. Init classes before loading the text domain and…
ryan authored Jul 13, 2005
259
260 // Load the default text localization domain.
261 load_default_textdomain();
262
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
263 // Find the blog locale.
264 $locale = get_locale();
265 $locale_file = WP_LANG_DIR . "/$locale.php";
593659b Hardening. Santizers for WPLANG and new_admin_email. Prevent stomping…
ryan authored Jun 27, 2011
266 if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) )
687e7d1 Force fatal errors via require() if we're missing something we need. …
nacin authored Feb 20, 2010
267 require( $locale_file );
3ffb57a unset temp vars so they don't pollute the global namespace.
ryan authored Jan 26, 2010
268 unset($locale_file);
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
269
270 // Pull in locale data after loading text domain.
81ed9a7 Introduce wp_load_translations_early(), which can be used before the …
nacin authored Jan 26, 2012
271 require_once( ABSPATH . WPINC . '/locale.php' );
98aa7f5 Rearrange load order. Init classes before loading the text domain and…
ryan authored Jul 13, 2005
272
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
273 /**
274 * WordPress Locale object for loading locale domain date and various strings.
275 * @global object $wp_locale
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
276 * @since 2.1.0
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
277 */
39d6c8e Explicitly globalize wp_locale for the UT framework. props scribu, fi…
nacin authored Sep 22, 2011
278 $GLOBALS['wp_locale'] = new WP_Locale();
3d2347a WP_Locale. Props Sewar. fixes #2568
ryan authored Apr 2, 2006
279
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
280 // Load the functions for the active theme, for both parent and child theme if applicable.
b863511 Load the theme's functions.php for wp-activate.php. Props nacin, frum…
ryan authored Jun 11, 2011
281 if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) {
ff9610e Don't load themes functions.php for upgrades. Props greuben. fixes #1…
ryan authored Apr 27, 2011
282 if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
283 include( STYLESHEETPATH . '/functions.php' );
284 if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
285 include( TEMPLATEPATH . '/functions.php' );
286 }
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
287
9ed7cba Rename the new 'themes_loaded' hook to 'after_setup_theme' to prevent…
dd32 authored Feb 19, 2010
288 do_action( 'after_setup_theme' );
dce728d Add 'themes_loaded' hook to run after parent/child themes have been i…
dd32 authored Feb 14, 2010
289
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
290 // Load any template functions the theme supports.
291 require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );
c369310 Better support for theme plugins. add_theme_page() and active theme f…
ryan authored Aug 29, 2005
292
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
293 // Set up current user.
294 $wp->init();
251ad30 Call WP::init() just before kicking the init action so that the curre…
ryan authored Jan 9, 2008
295
cde78a7 add a wp_loaded action that fires once WordPress init has finished. P…
dd32 authored Feb 28, 2010
296 /**
297 * Most of WP is loaded at this stage, and the user is authenticated. WP continues
298 * to load on the init hook that follows (e.g. widgets), and many plugins instantiate
299 * themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
300 *
301 * If you wish to plug an action once WP is loaded, use the wp_loaded hook below.
302 */
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
303 do_action( 'init' );
06a0fc3 Formatting
matt authored Nov 11, 2005
304
ff140f1 Move ms_site_check() to after init and allow super admins to view blo…
ryan authored Apr 23, 2010
305 // Check site status
306 if ( is_multisite() ) {
307 if ( true !== ( $file = ms_site_check() ) ) {
308 require( $file );
309 die();
310 }
311 unset($file);
312 }
313
cde78a7 add a wp_loaded action that fires once WordPress init has finished. P…
dd32 authored Feb 28, 2010
314 /**
601c2f4 Remove reference to file that doesn't exist. see #12400
nacin authored Feb 28, 2010
315 * This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
cde78a7 add a wp_loaded action that fires once WordPress init has finished. P…
dd32 authored Feb 28, 2010
316 *
7957161 Remove references to wp-ajax.php. props TobiasBg, fixes #12400
nacin authored Mar 26, 2010
317 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
318 * users not logged in.
319 *
320 * @link http://codex.wordpress.org/AJAX_in_Plugins
601c2f4 Remove reference to file that doesn't exist. see #12400
nacin authored Feb 28, 2010
321 *
322 * @since 3.0.0
cde78a7 add a wp_loaded action that fires once WordPress init has finished. P…
dd32 authored Feb 28, 2010
323 */
324 do_action('wp_loaded');
Something went wrong with that request. Please try again.