Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 304 lines (243 sloc) 9.106 kb
0bc86133 » mikelittle
2003-06-12 b2config.php replaced with wp-config.sample.php
1 <?php
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
2 /**
58d47426 » markjaquith
2010-03-17 More pedantry. "Setup" is not a verb. http://notaverb.com/setup
3 * Used to set up and fix common variables and include
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
4 * the WordPress procedural and class library.
5 *
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
6 * Allows for some configuration in wp-config.php (see default-constants.php)
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
7 *
8 * @package WordPress
9 */
10
dbd24593 » wpmuguru
2010-01-10 multi-site startup, See #11644
11 /**
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
12 * Stores the location of the WordPress directory of functions, classes, and core content.
dbd24593 » wpmuguru
2010-01-10 multi-site startup, See #11644
13 *
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
14 * @since 1.0.0
dbd24593 » wpmuguru
2010-01-10 multi-site startup, See #11644
15 */
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
16 define( 'WPINC', 'wp-includes' );
dbd24593 » wpmuguru
2010-01-10 multi-site startup, See #11644
17
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
18 // Include files required for initialization.
19 require( ABSPATH . WPINC . '/load.php' );
20 require( ABSPATH . WPINC . '/default-constants.php' );
21 require( ABSPATH . WPINC . '/version.php' );
5c2f29c4 » ryan
2008-01-29 Increase memory limit. Props darkdragon. see #3141
22
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
23 // Set initial default constants including WP_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.
60dc67eb » westi
2010-02-12 Improve the implementation of the default constant defining functions…
24 wp_initial_constants( );
5c2f29c4 » ryan
2008-01-29 Increase memory limit. Props darkdragon. see #3141
25
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
26 // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
27 set_magic_quotes_runtime( 0 );
28 @ini_set( 'magic_quotes_sybase', 0 );
6e181bb9 » ryan
2008-03-03 Multi-byte character safe excerpting from nbachiyski. fixes #6077
29
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
30 // Set default timezone in PHP 5.
31 if ( function_exists( 'date_default_timezone_set' ) )
32 date_default_timezone_set( 'UTC' );
23710436 » ryan
2009-12-02 Set default timezone. Props Denis-de-Bernardy. fixes #10940
33
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
34 // Turn register_globals off.
321c3107 » ryan
2007-09-03 Remove trailing whitespace
35 wp_unregister_GLOBALS();
d4f95b7f » rob1n
2007-06-12 Accidental commit. Props Nazgul. fixes #4437
36
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
37 // Ensure these global variables do not exist so they do not interfere with WordPress.
479fc2e2 » ryan
2008-01-09 phpdoc tuneup from darkdragon. see #5611
38 unset( $wp_filter, $cache_lastcommentmodified, $cache_lastpostdate );
376ec4dc » matt
2005-08-09 Tweak
39
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
40 // Standardize $_SERVER variables across setups.
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
41 wp_fix_server_vars();
c50e7da2 » matt
2005-11-10 Fixes #1591 (again)
42
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
43 // Check for the required PHP version and for the MySQL extension or a database drop-in.
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
44 wp_check_php_mysql_versions();
885ee8f9 » matt
2005-11-14 This should fix permalinks, but may break the PHP as CGI funkiness again
45
dbfb51c6 » ryan
2010-02-21 Trim trailing whites
46 // Check if we have recieved a request due to missing favicon.ico
a60b801d » nacin
2010-02-18 Bail early for favicon.ico requests so we don't load WP twice. Props …
47 wp_favicon_request();
48
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
49 // Check if we're in maintenance mode.
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
50 wp_maintenance();
0f7bb42a » ryan
2006-09-07 timer_stop() wanted to be near timer_start().
51
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
52 // Start loading timer.
551e52ff » saxmatt
2004-10-04 Code cleanup and some fixes from the WP Japan folks.
53 timer_start();
da4a0d98 » saxmatt
2004-08-10 Fix for empty plugin strings, class include moved for timing.
54
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
55 // Check if we're in WP_DEBUG mode.
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
56 wp_debug_mode();
9b09572d » saxmatt
2004-01-02 Turn down error reporting.
57
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
58 // For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
59 if ( WP_CACHE )
687e7d1c » nacin
2010-02-20 Force fatal errors via require() if we're missing something we need. …
60 @include( WP_CONTENT_DIR . '/advanced-cache.php' );
70a449d8 » saxmatt
2005-02-15 Allow for plugins to kick in before everything if define in wp-config
61
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
62 // Define WP_LANG_DIR if not set.
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
63 wp_set_lang_dir();
0c6394a0 » azaozz
2008-08-05 Stop fatal error in post revisions when setting the include path is d…
64
98e8daa2 » ryan
2010-02-13 Add ability to query by domain and/or path to get_blog_details(). Imp…
65 // Load early WordPress files.
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
66 require( ABSPATH . WPINC . '/compat.php' );
67 require( ABSPATH . WPINC . '/functions.php' );
68 require( ABSPATH . WPINC . '/classes.php' );
b36471d4 » markjaquith
2007-09-13 Use wp_die() for WPDB bails. Send 500 response and no-cache headers s…
69
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
70 // Include the wpdb class, or a db.php database drop-in if present.
658d22d0 » ryan
2009-04-10 Store field types in wpdb object. Props mdawaffe. see #7171
71 require_wp_db();
72
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
73 // Set the database table prefix and the format specifiers for database table columns.
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
74 wp_set_wpdb_vars();
d2110af1 » ryan
2009-04-15 Define wp_clone() before loading the cache.
75
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
76 // Start the WordPress object cache, or an external object cache if the drop-in is present.
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
77 wp_start_object_cache();
1c55a42f » azaozz
2009-12-14 Move is_admin() to wp-settings.php so it's available when query.php i…
78
98e8daa2 » ryan
2010-02-13 Add ability to query by domain and/or path to get_blog_details(). Imp…
79 // Load early WordPress files.
80 require( ABSPATH . WPINC . '/plugin.php' );
81 require( ABSPATH . WPINC . '/default-filters.php' );
687e7d1c » nacin
2010-02-20 Force fatal errors via require() if we're missing something we need. …
82 require( ABSPATH . WPINC . '/pomo/mo.php' );
98e8daa2 » ryan
2010-02-13 Add ability to query by domain and/or path to get_blog_details(). Imp…
83
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
84 // Initialize multisite if enabled.
731eada1 » ryan
2010-02-13 Move blogs table related functions to blogs.php. Include it before ms…
85 if ( is_multisite() ) {
dfe271c7 » nacin
2010-02-15 Rename wp-includes/blogs.php to ms-blogs.php. See #11644
86 require( ABSPATH . WPINC . '/ms-blogs.php' );
493a307c » wpmuguru
2010-01-28 rearrage multisite initialization, remove deprecated $wpmuBaseTablePr…
87 require( ABSPATH . WPINC . '/ms-settings.php' );
751a7d10 » nacin
2010-04-05 Prevent half-baked loading of MS that would happen when constants are…
88 } elseif ( ! defined( 'MULTISITE' ) ) {
89 define( 'MULTISITE', false );
731eada1 » ryan
2010-02-13 Move blogs table related functions to blogs.php. Include it before ms…
90 }
dbd24593 » wpmuguru
2010-01-10 multi-site startup, See #11644
91
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
92 // Stop most of WordPress from being loaded if we just want the basics.
93 if ( SHORTINIT )
dbd24593 » wpmuguru
2010-01-10 multi-site startup, See #11644
94 return false;
95
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
96 // Load the l18n library.
687e7d1c » nacin
2010-02-20 Force fatal errors via require() if we're missing something we need. …
97 require( ABSPATH . WPINC . '/l10n.php' );
1bd4057b » saxmatt
2004-12-19 Bug fixes
98
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
99 // Run the installer if WordPress is not installed.
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
100 wp_not_installed();
1bd4057b » saxmatt
2004-12-19 Bug fixes
101
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
102 // Load most of WordPress.
103 require( ABSPATH . WPINC . '/formatting.php' );
104 require( ABSPATH . WPINC . '/capabilities.php' );
105 require( ABSPATH . WPINC . '/query.php' );
106 require( ABSPATH . WPINC . '/theme.php' );
107 require( ABSPATH . WPINC . '/user.php' );
108 require( ABSPATH . WPINC . '/meta.php' );
109 require( ABSPATH . WPINC . '/general-template.php' );
110 require( ABSPATH . WPINC . '/link-template.php' );
111 require( ABSPATH . WPINC . '/author-template.php' );
112 require( ABSPATH . WPINC . '/post.php' );
113 require( ABSPATH . WPINC . '/post-template.php' );
114 require( ABSPATH . WPINC . '/category.php' );
115 require( ABSPATH . WPINC . '/category-template.php' );
116 require( ABSPATH . WPINC . '/comment.php' );
117 require( ABSPATH . WPINC . '/comment-template.php' );
118 require( ABSPATH . WPINC . '/rewrite.php' );
119 require( ABSPATH . WPINC . '/feed.php' );
120 require( ABSPATH . WPINC . '/bookmark.php' );
121 require( ABSPATH . WPINC . '/bookmark-template.php' );
122 require( ABSPATH . WPINC . '/kses.php' );
123 require( ABSPATH . WPINC . '/cron.php' );
124 require( ABSPATH . WPINC . '/deprecated.php' );
125 require( ABSPATH . WPINC . '/script-loader.php' );
126 require( ABSPATH . WPINC . '/taxonomy.php' );
127 require( ABSPATH . WPINC . '/update.php' );
128 require( ABSPATH . WPINC . '/canonical.php' );
129 require( ABSPATH . WPINC . '/shortcodes.php' );
130 require( ABSPATH . WPINC . '/media.php' );
131 require( ABSPATH . WPINC . '/http.php' );
1f93931d » ryan
2010-04-13 Always include class-http.php. see #12990
132 require( ABSPATH . WPINC . '/class-http.php' );
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
133 require( ABSPATH . WPINC . '/widgets.php' );
d5074db5 » ryan
2010-02-24 Reorg nav menu files. see #11817
134 require( ABSPATH . WPINC . '/nav-menu.php' );
135 require( ABSPATH . WPINC . '/nav-menu-template.php' );
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
136
137 // Load multisite-specific files.
f5e12260 » ryan
2010-01-06 Introduce is_multisite(). see #11644
138 if ( is_multisite() ) {
687e7d1c » nacin
2010-02-20 Force fatal errors via require() if we're missing something we need. …
139 require( ABSPATH . WPINC . '/ms-functions.php' );
140 require( ABSPATH . WPINC . '/ms-default-filters.php' );
141 require( ABSPATH . WPINC . '/ms-deprecated.php' );
f5e12260 » ryan
2010-01-06 Introduce is_multisite(). see #11644
142 }
143
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
144 // Define constants that rely on the API to obtain the default value.
145 // Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in.
60dc67eb » westi
2010-02-12 Improve the implementation of the default constant defining functions…
146 wp_plugin_directory_constants( );
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
147
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
148 // Load must-use plugins.
0206ffe6 » westi
2010-02-12 Improve function naming for plugin file discovery functions.
149 foreach ( wp_get_mu_plugins() as $mu_plugin ) {
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
150 include_once( $mu_plugin );
151 }
1592ca9f » ryan
2010-02-02 Cleanup network plugin loading. Props nacin. see #11644
152 unset( $mu_plugin );
dbd24593 » wpmuguru
2010-01-10 multi-site startup, See #11644
153
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
154 do_action( 'muplugins_loaded' );
3bf4ed17 » ryan
2009-03-07 Support mu-plugins for 'Must Use' autoload plugins
155
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
156 // Check site status if multisite.
f9a92c25 » ryan
2010-01-15 Coding style cleanups
157 if ( is_multisite() ) {
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
158 if ( true !== ( $file = ms_site_check() ) ) {
687e7d1c » nacin
2010-02-20 Force fatal errors via require() if we're missing something we need. …
159 require( $file );
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
160 die();
161 }
3ffb57a4 » ryan
2010-01-26 unset temp vars so they don't pollute the global namespace.
162 unset($file);
b20c3c41 » westi
2010-02-12 Improve the implementation of the default constant defining functions…
163
164 ms_cookie_constants( );
dbd24593 » wpmuguru
2010-01-10 multi-site startup, See #11644
165 }
9771ec51 » ryan
2008-05-27 First cut and better admin SSL support. see #7001
166
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
167 // Define constants after multisite is loaded. Cookie-related constants may be overridden in ms_network_cookies().
60dc67eb » westi
2010-02-12 Improve the implementation of the default constant defining functions…
168 wp_cookie_constants( );
169
170 // Define and enforce our SSL constants
171 wp_ssl_constants( );
41afea2f » matt
2005-07-18 Let advanced users override cookies.
172
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
173 // Create common globals.
174 require( ABSPATH . WPINC . '/vars.php' );
edc7d7cd » saxmatt
2003-12-31 Installation cleanup.
175
9826fcb0 » ryan
2010-04-08 Call create_initial_post_types() before plugins and themes are loaded…
176 // Make taxonomies and posts available to plugins and themes.
177 // @plugin authors: warning: these get registered again on the init hook.
ae5848d3 » ryan
2009-06-15 Register default taxonomies before theme functions are loaded to sati…
178 create_initial_taxonomies();
9826fcb0 » ryan
2010-04-08 Call create_initial_post_types() before plugins and themes are loaded…
179 create_initial_post_types();
ae5848d3 » ryan
2009-06-15 Register default taxonomies before theme functions are loaded to sati…
180
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
181 // Load active plugins.
0206ffe6 » westi
2010-02-12 Improve function naming for plugin file discovery functions.
182 foreach ( wp_get_active_and_valid_plugins() as $plugin )
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
183 include_once( $plugin );
184 unset( $plugin );
1127059a » saxmatt
2004-04-19 shutdown action hook.
185
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
186 // Load pluggable functions.
187 require( ABSPATH . WPINC . '/pluggable.php' );
54c4ac3c » nacin
2010-02-18 Move deprecated pluggable functions to a new file to lower their prof…
188 require( ABSPATH . WPINC . '/pluggable-deprecated.php' );
08b02d95 » ryan
2005-04-04 Move plugin replacebale functions to pluggable-functions.php. http://…
189
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
190 // Set internal encoding.
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
191 wp_set_internal_encoding();
6e181bb9 » ryan
2008-03-03 Multi-byte character safe excerpting from nbachiyski. fixes #6077
192
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
193 // Run wp_cache_postload() if object cache is enabled and the function exists.
194 if ( WP_CACHE && function_exists( 'wp_cache_postload' ) )
70a449d8 » saxmatt
2005-02-15 Allow for plugins to kick in before everything if define in wp-config
195 wp_cache_postload();
196
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
197 do_action( 'plugins_loaded' );
70a449d8 » saxmatt
2005-02-15 Allow for plugins to kick in before everything if define in wp-config
198
60dc67eb » westi
2010-02-12 Improve the implementation of the default constant defining functions…
199 // Define constants which affect functionality if not already defined.
200 wp_functionality_constants( );
91efba11 » ryan
2005-07-05 Use wpdb->escape instead of addslashes to prepare DB bound data.
201
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
202 // Add magic quotes and set up $_REQUEST ( $_GET + $_POST )
439d50d6 » ryan
2010-01-15 Cleanup wp-settings. Move functions needed at startup into load.php. …
203 wp_magic_quotes();
a431376d » markjaquith
2009-07-31 Be consistent about slashing _REQUEST superglobal. props dd32. fixes …
204
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
205 do_action( 'sanitize_comment_cookies' );
1034767a » ryan
2006-06-22 wp_get_current_commenter()
206
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
207 /**
208 * WordPress Query object
209 * @global object $wp_the_query
479fc2e2 » ryan
2008-01-09 phpdoc tuneup from darkdragon. see #5611
210 * @since 2.0.0
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
211 */
22bee1c9 » ryan
2006-11-09 Preserve the original query object as wp_the_query so that it's not s…
212 $wp_the_query =& new WP_Query();
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
213
214 /**
215 * Holds the reference to @see $wp_the_query
216 * Use this global for WordPress queries
217 * @global object $wp_query
479fc2e2 » ryan
2008-01-09 phpdoc tuneup from darkdragon. see #5611
218 * @since 1.5.0
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
219 */
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
220 $wp_query =& $wp_the_query;
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
221
222 /**
223 * Holds the WordPress Rewrite object for creating pretty URLs
224 * @global object $wp_rewrite
479fc2e2 » ryan
2008-01-09 phpdoc tuneup from darkdragon. see #5611
225 * @since 1.5.0
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
226 */
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
227 $wp_rewrite =& new WP_Rewrite();
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
228
229 /**
230 * WordPress Object
231 * @global object $wp
479fc2e2 » ryan
2008-01-09 phpdoc tuneup from darkdragon. see #5611
232 * @since 2.0.0
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
233 */
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
234 $wp =& new WP();
1baf503d » ryan
2005-06-10 Break blog header up into functional chunks. Stick it all in a WP cla…
235
1eab8fcc » ryan
2009-03-17 Introduce singleton widget factory
236 /**
237 * WordPress Widget Factory Object
238 * @global object $wp_widget_factory
239 * @since 2.8.0
240 */
241 $wp_widget_factory =& new WP_Widget_Factory();
242
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
243 do_action( 'setup_theme' );
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
244
60dc67eb » westi
2010-02-12 Improve the implementation of the default constant defining functions…
245 // Define the template related constants.
246 wp_templating_constants( );
98aa7f59 » ryan
2005-07-13 Rearrange load order. Init classes before loading the text domain and…
247
248 // Load the default text localization domain.
249 load_default_textdomain();
250
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
251 // Find the blog locale.
252 $locale = get_locale();
253 $locale_file = WP_LANG_DIR . "/$locale.php";
254 if ( is_readable( $locale_file ) )
687e7d1c » nacin
2010-02-20 Force fatal errors via require() if we're missing something we need. …
255 require( $locale_file );
3ffb57a4 » ryan
2010-01-26 unset temp vars so they don't pollute the global namespace.
256 unset($locale_file);
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
257
258 // Pull in locale data after loading text domain.
687e7d1c » nacin
2010-02-20 Force fatal errors via require() if we're missing something we need. …
259 require( ABSPATH . WPINC . '/locale.php' );
98aa7f59 » ryan
2005-07-13 Rearrange load order. Init classes before loading the text domain and…
260
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
261 /**
262 * WordPress Locale object for loading locale domain date and various strings.
263 * @global object $wp_locale
479fc2e2 » ryan
2008-01-09 phpdoc tuneup from darkdragon. see #5611
264 * @since 2.1.0
75dc7786 » westi
2007-12-20 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
265 */
92421de7 » ryan
2006-11-19 Ref more singletons.
266 $wp_locale =& new WP_Locale();
3d2347a6 » ryan
2006-04-02 WP_Locale. Props Sewar. fixes #2568
267
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
268 // Load the functions for the active theme, for both parent and child theme if applicable.
269 if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
270 include( STYLESHEETPATH . '/functions.php' );
271 if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
272 include( TEMPLATEPATH . '/functions.php' );
273
9ed7cba3 » dd32
2010-02-19 Rename the new 'themes_loaded' hook to 'after_setup_theme' to prevent…
274 do_action( 'after_setup_theme' );
dce728db » dd32
2010-02-14 Add 'themes_loaded' hook to run after parent/child themes have been i…
275
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
276 // Load any template functions the theme supports.
277 require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );
c369310b » ryan
2005-08-29 Better support for theme plugins. add_theme_page() and active theme f…
278
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
279 register_shutdown_function( 'shutdown_action_hook' );
98aa7f59 » ryan
2005-07-13 Rearrange load order. Init classes before loading the text domain and…
280
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
281 // Set up current user.
282 $wp->init();
251ad300 » ryan
2008-01-09 Call WP::init() just before kicking the init action so that the curre…
283
cde78a7c » dd32
2010-02-28 add a wp_loaded action that fires once WordPress init has finished. P…
284 /**
285 * Most of WP is loaded at this stage, and the user is authenticated. WP continues
286 * to load on the init hook that follows (e.g. widgets), and many plugins instantiate
287 * themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
288 *
289 * If you wish to plug an action once WP is loaded, use the wp_loaded hook below.
290 */
506c22bf » ryan
2010-01-19 phpdoc for load.php, return some includes to global scope. Props naci…
291 do_action( 'init' );
06a0fc3a » matt
2005-11-11 Formatting
292
cde78a7c » dd32
2010-02-28 add a wp_loaded action that fires once WordPress init has finished. P…
293 /**
601c2f4d » nacin
2010-02-28 Remove reference to file that doesn't exist. see #12400
294 * This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
cde78a7c » dd32
2010-02-28 add a wp_loaded action that fires once WordPress init has finished. P…
295 *
79571618 » nacin
2010-03-26 Remove references to wp-ajax.php. props TobiasBg, fixes #12400
296 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
297 * users not logged in.
298 *
299 * @link http://codex.wordpress.org/AJAX_in_Plugins
601c2f4d » nacin
2010-02-28 Remove reference to file that doesn't exist. see #12400
300 *
301 * @since 3.0.0
cde78a7c » dd32
2010-02-28 add a wp_loaded action that fires once WordPress init has finished. P…
302 */
303 do_action('wp_loaded');
44e51151 » wpmuguru
2010-02-02 internalize uploaded media rewrite rule, see #11742
304 ?>
Something went wrong with that request. Please try again.