Skip to content
Newer
Older
100644 279 lines (219 sloc) 8.06 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 /**
3 * Used to setup and fix common variables and include
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 *
8 * @package WordPress
9 */
10
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
11 /**
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
12 * Stores the location of the WordPress directory of functions, classes, and core content.
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 * @since 1.0.0
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
15 */
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
16 define( 'WPINC', 'wp-includes' );
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 // Include files required for initialization.
19 require( ABSPATH . WPINC . '/load.php' );
20 require( ABSPATH . WPINC . '/default-constants.php' );
21 require( ABSPATH . WPINC . '/version.php' );
5c2f29c Increase memory limit. Props darkdragon. see #3141
ryan authored Jan 29, 2008
22
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
23 // Set initial default constants including WP_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.
24 wp_default_constants( 'init' );
5c2f29c Increase memory limit. Props darkdragon. see #3141
ryan authored Jan 29, 2008
25
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
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 );
6e181bb Multi-byte character safe excerpting from nbachiyski. fixes #6077
ryan authored Mar 3, 2008
29
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
30 // Set default timezone in PHP 5.
31 if ( function_exists( 'date_default_timezone_set' ) )
32 date_default_timezone_set( 'UTC' );
2371043 Set default timezone. Props Denis-de-Bernardy. fixes #10940
ryan authored Dec 2, 2009
33
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
34 // Turn register_globals off.
321c310 Remove trailing whitespace
ryan authored Sep 3, 2007
35 wp_unregister_GLOBALS();
d4f95b7 Accidental commit. Props Nazgul. fixes #4437
rob1n authored Jun 12, 2007
36
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
37 // Ensure these global variables do not exist so they do not interfere with WordPress.
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
38 unset( $wp_filter, $cache_lastcommentmodified, $cache_lastpostdate );
376ec4d Tweak
matt authored Aug 9, 2005
39
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
40 // Standardize $_SERVER variables across setups.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
41 wp_fix_server_vars();
c50e7da Fixes #1591 (again)
matt authored Nov 10, 2005
42
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
43 // Check for the required PHP version and for the MySQL extension or a database drop-in.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
44 wp_check_php_mysql_versions();
885ee8f This should fix permalinks, but may break the PHP as CGI funkiness again
matt authored Nov 14, 2005
45
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
46 // Check if we're in maintenance mode.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
47 wp_maintenance();
0f7bb42 timer_stop() wanted to be near timer_start().
ryan authored Sep 7, 2006
48
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
49 // Start loading timer.
551e52f Code cleanup and some fixes from the WP Japan folks.
saxmatt authored Oct 4, 2004
50 timer_start();
da4a0d9 Fix for empty plugin strings, class include moved for timing.
saxmatt authored Aug 10, 2004
51
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
52 // 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
53 wp_debug_mode();
9b09572 Turn down error reporting.
saxmatt authored Jan 2, 2004
54
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
55 // 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
56 if ( WP_CACHE )
6c8d35d Allow wp-content to exist outside of webroot. Props sambauers. see #6938
ryan authored May 27, 2008
57 @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
58
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
59 // Define WP_LANG_DIR if not set.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
60 wp_set_lang_dir();
0c6394a Stop fatal error in post revisions when setting the include path is d…
azaozz authored Aug 5, 2008
61
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
62 // Include early WordPress files.
63 require( ABSPATH . WPINC . '/compat.php' );
64 require( ABSPATH . WPINC . '/functions.php' );
65 require( ABSPATH . WPINC . '/classes.php' );
b36471d Use wp_die() for WPDB bails. Send 500 response and no-cache headers s…
markjaquith authored Sep 13, 2007
66
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
67 // Include the wpdb class, or a db.php database drop-in if present.
658d22d Store field types in wpdb object. Props mdawaffe. see #7171
ryan authored Apr 10, 2009
68 require_wp_db();
69
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
70 // Set the database table prefix and the format specifiers for database table columns.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
71 wp_set_wpdb_vars();
d2110af Define wp_clone() before loading the cache.
ryan authored Apr 15, 2009
72
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
73 // 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
74 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
75
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
76 // Initialize multisite if enabled.
9bea527 Coding style
ryan authored Jan 15, 2010
77 if ( is_multisite() )
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
78 require( ABSPATH . WPINC . '/ms-load.php' );
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
79
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
80 // Load early WordPress files.
81 require( ABSPATH . WPINC . '/plugin.php' );
82 require( ABSPATH . WPINC . '/default-filters.php' );
83 include_once( ABSPATH . WPINC . '/pomo/mo.php' );
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
84
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
85 // Stop most of WordPress from being loaded if we just want the basics.
86 if ( SHORTINIT )
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
87 return false;
88
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
89 // Load the l18n library.
90 require_once ( ABSPATH . WPINC . '/l10n.php' );
1bd4057 Bug fixes
saxmatt authored Dec 19, 2004
91
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
92 // 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
93 wp_not_installed();
1bd4057 Bug fixes
saxmatt authored Dec 19, 2004
94
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
95 // Load most of WordPress.
96 require( ABSPATH . WPINC . '/formatting.php' );
97 require( ABSPATH . WPINC . '/capabilities.php' );
98 require( ABSPATH . WPINC . '/query.php' );
99 require( ABSPATH . WPINC . '/theme.php' );
100 require( ABSPATH . WPINC . '/user.php' );
101 require( ABSPATH . WPINC . '/meta.php' );
102 require( ABSPATH . WPINC . '/general-template.php' );
103 require( ABSPATH . WPINC . '/link-template.php' );
104 require( ABSPATH . WPINC . '/author-template.php' );
105 require( ABSPATH . WPINC . '/post.php' );
106 require( ABSPATH . WPINC . '/post-template.php' );
107 require( ABSPATH . WPINC . '/category.php' );
108 require( ABSPATH . WPINC . '/category-template.php' );
109 require( ABSPATH . WPINC . '/comment.php' );
110 require( ABSPATH . WPINC . '/comment-template.php' );
111 require( ABSPATH . WPINC . '/rewrite.php' );
112 require( ABSPATH . WPINC . '/feed.php' );
113 require( ABSPATH . WPINC . '/bookmark.php' );
114 require( ABSPATH . WPINC . '/bookmark-template.php' );
115 require( ABSPATH . WPINC . '/kses.php' );
116 require( ABSPATH . WPINC . '/cron.php' );
117 require( ABSPATH . WPINC . '/deprecated.php' );
118 require( ABSPATH . WPINC . '/script-loader.php' );
119 require( ABSPATH . WPINC . '/taxonomy.php' );
120 require( ABSPATH . WPINC . '/update.php' );
121 require( ABSPATH . WPINC . '/canonical.php' );
122 require( ABSPATH . WPINC . '/shortcodes.php' );
123 require( ABSPATH . WPINC . '/media.php' );
124 require( ABSPATH . WPINC . '/http.php' );
125 require( ABSPATH . WPINC . '/widgets.php' );
126
127 // Load multisite-specific files.
f5e1226 Introduce is_multisite(). see #11644
ryan authored Jan 6, 2010
128 if ( is_multisite() ) {
129 require_once( ABSPATH . WPINC . '/ms-functions.php' );
130 require_once( ABSPATH . WPINC . '/ms-default-filters.php' );
ce33a91 Deprecate generate_random_password(). fixes #11746
ryan authored Jan 7, 2010
131 require_once( ABSPATH . WPINC . '/ms-deprecated.php' );
f5e1226 Introduce is_multisite(). see #11644
ryan authored Jan 6, 2010
132 }
133
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
134 // Define constants that rely on the API to obtain the default value.
135 wp_default_constants( 'wp_included' );
6c8d35d Allow wp-content to exist outside of webroot. Props sambauers. see #6938
ryan authored May 27, 2008
136
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
137 // Set up multisite if enabled.
f9a92c2 Coding style cleanups
ryan authored Jan 15, 2010
138 if ( is_multisite() )
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
139 ms_network_settings();
3bf4ed1 Support mu-plugins for 'Must Use' autoload plugins
ryan authored Mar 7, 2009
140
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
141 // Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in.
142 wp_default_constants( 'ms_network_settings_loaded' );
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
143
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
144 // Load must-use plugins.
145 foreach( wp_muplugins_to_load() as $mu_plugin )
146 include_once( $mu_plugin );
147 unset( $mu_plugin );
3bf4ed1 Support mu-plugins for 'Must Use' autoload plugins
ryan authored Mar 7, 2009
148
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
149 // Load network-wide plugins if multisite.
150 if ( is_multisite() ) {
151 foreach ( ms_network_plugins() as $plugin_file )
152 include_once( $plugin_file );
153 unset( $plugin_file );
154 }
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
155
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
156 do_action( 'muplugins_loaded' );
3bf4ed1 Support mu-plugins for 'Must Use' autoload plugins
ryan authored Mar 7, 2009
157
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
158 // Check site status if multisite.
f9a92c2 Coding style cleanups
ryan authored Jan 15, 2010
159 if ( is_multisite() ) {
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
160 if ( true !== ( $file = ms_site_check() ) ) {
161 require_once( $file );
162 die();
163 }
6780fa7 Tidy up the mu-plugins loading code to make it more readable.
westi authored Jan 12, 2010
164 ms_network_cookies();
dbd2459 multi-site startup, See #11644
wpmuguru authored Jan 10, 2010
165 }
9771ec5 First cut and better admin SSL support. see #7001
ryan authored May 27, 2008
166
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
167 // Define constants after multisite is loaded. Cookie-related constants may be overridden in ms_network_cookies().
168 wp_default_constants( 'ms_loaded' );
41afea2 Let advanced users override cookies.
matt authored Jul 18, 2005
169
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
170 // Create common globals.
171 require( ABSPATH . WPINC . '/vars.php' );
edc7d7c Installation cleanup.
saxmatt authored Dec 31, 2003
172
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
173 // Make taxonomies available to plugins and themes.
174 // @plugin authors: warning: this gets registered again on the init hook.
ae5848d Register default taxonomies before theme functions are loaded to sati…
ryan authored Jun 15, 2009
175 create_initial_taxonomies();
176
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
177 // Load active plugins.
178 foreach( wp_plugins_to_load() as $plugin )
179 include_once( $plugin );
180 unset( $plugin );
1127059 shutdown action hook.
saxmatt authored Apr 19, 2004
181
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
182 // Load pluggable functions.
183 require( ABSPATH . WPINC . '/pluggable.php' );
08b02d9 Move plugin replacebale functions to pluggable-functions.php. http://…
ryan authored Apr 4, 2005
184
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
185 // Set internal encoding.
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
186 wp_set_internal_encoding();
6e181bb Multi-byte character safe excerpting from nbachiyski. fixes #6077
ryan authored Mar 3, 2008
187
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
188 // Run wp_cache_postload() if object cache is enabled and the function exists.
189 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
190 wp_cache_postload();
191
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
192 do_action( 'plugins_loaded' );
70a449d Allow for plugins to kick in before everything if define in wp-config
saxmatt authored Feb 15, 2005
193
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
194 // Define WP_POST_REVISIONS if not already defined.
195 wp_default_constants( 'plugins_loaded' );
91efba1 Use wpdb->escape instead of addslashes to prepare DB bound data.
ryan authored Jul 5, 2005
196
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
197 // 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
198 wp_magic_quotes();
a431376 Be consistent about slashing _REQUEST superglobal. props dd32. fixes …
markjaquith authored Jul 31, 2009
199
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
200 do_action( 'sanitize_comment_cookies' );
1034767 wp_get_current_commenter()
ryan authored Jun 22, 2006
201
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
202 /**
203 * WordPress Query object
204 * @global object $wp_the_query
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
205 * @since 2.0.0
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
206 */
22bee1c Preserve the original query object as wp_the_query so that it's not s…
ryan authored Nov 9, 2006
207 $wp_the_query =& new WP_Query();
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
208
209 /**
210 * Holds the reference to @see $wp_the_query
211 * Use this global for WordPress queries
212 * @global object $wp_query
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
213 * @since 1.5.0
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
214 */
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
215 $wp_query =& $wp_the_query;
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
216
217 /**
218 * Holds the WordPress Rewrite object for creating pretty URLs
219 * @global object $wp_rewrite
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
220 * @since 1.5.0
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
221 */
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
222 $wp_rewrite =& new WP_Rewrite();
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
223
224 /**
225 * WordPress Object
226 * @global object $wp
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
227 * @since 2.0.0
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
228 */
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
229 $wp =& new WP();
1baf503 Break blog header up into functional chunks. Stick it all in a WP cla…
ryan authored Jun 10, 2005
230
1eab8fc Introduce singleton widget factory
ryan authored Mar 17, 2009
231 /**
232 * WordPress Widget Factory Object
233 * @global object $wp_widget_factory
234 * @since 2.8.0
235 */
236 $wp_widget_factory =& new WP_Widget_Factory();
237
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
238 do_action( 'setup_theme' );
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
239
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
240 // Define the TEMPLATEPATH and STYLESHEETPATH constants.
241 wp_default_constants( 'setup_theme' );
98aa7f5 Rearrange load order. Init classes before loading the text domain and…
ryan authored Jul 13, 2005
242
243 // Load the default text localization domain.
244 load_default_textdomain();
245
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
246 // Find the blog locale.
247 $locale = get_locale();
248 $locale_file = WP_LANG_DIR . "/$locale.php";
249 if ( is_readable( $locale_file ) )
250 require_once( $locale_file );
251
252 // Pull in locale data after loading text domain.
253 require_once( ABSPATH . WPINC . '/locale.php' );
98aa7f5 Rearrange load order. Init classes before loading the text domain and…
ryan authored Jul 13, 2005
254
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
255 /**
256 * WordPress Locale object for loading locale domain date and various strings.
257 * @global object $wp_locale
479fc2e phpdoc tuneup from darkdragon. see #5611
ryan authored Jan 9, 2008
258 * @since 2.1.0
75dc778 phpdoc for wp-settings.php. Fixes #5211 props darkdragon.
westi authored Dec 20, 2007
259 */
92421de Ref more singletons.
ryan authored Nov 19, 2006
260 $wp_locale =& new WP_Locale();
3d2347a WP_Locale. Props Sewar. fixes #2568
ryan authored Apr 2, 2006
261
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
262 // Load the functions for the active theme, for both parent and child theme if applicable.
263 if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
264 include( STYLESHEETPATH . '/functions.php' );
265 if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
266 include( TEMPLATEPATH . '/functions.php' );
267
268 // Load any template functions the theme supports.
269 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
270
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
271 register_shutdown_function( 'shutdown_action_hook' );
98aa7f5 Rearrange load order. Init classes before loading the text domain and…
ryan authored Jul 13, 2005
272
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
273 // Set up current user.
274 $wp->init();
251ad30 Call WP::init() just before kicking the init action so that the curre…
ryan authored Jan 9, 2008
275
1baf503 Break blog header up into functional chunks. Stick it all in a WP cla…
ryan authored Jun 10, 2005
276 // Everything is loaded and initialized.
506c22b phpdoc for load.php, return some includes to global scope. Props naci…
ryan authored Jan 19, 2010
277 do_action( 'init' );
06a0fc3 Formatting
matt authored Nov 11, 2005
278
439d50d Cleanup wp-settings. Move functions needed at startup into load.php. …
ryan authored Jan 15, 2010
279 ?>
Something went wrong with that request. Please try again.