Ticket #25469: 25469.diff
File 25469.diff, 1.9 KB (added by , 10 years ago) |
---|
-
src/wp-settings.php
171 171 unset( $network_plugin ); 172 172 } 173 173 174 /** 175 * Fires once all must-use and network activated plugins have loaded. 176 * 177 * @since 2.8.0 178 */ 174 179 do_action( 'muplugins_loaded' ); 175 180 176 181 if ( is_multisite() ) … … 209 214 if ( WP_CACHE && function_exists( 'wp_cache_postload' ) ) 210 215 wp_cache_postload(); 211 216 217 /** 218 * Fired once activated plugins have loaded. 219 * 220 * Pluggable functions are also available at this point in the loading order. 221 * 222 * @since 1.5.2 223 */ 212 224 do_action( 'plugins_loaded' ); 213 225 214 226 // Define constants which affect functionality if not already defined. … … 217 229 // Add magic quotes and set up $_REQUEST ( $_GET + $_POST ) 218 230 wp_magic_quotes(); 219 231 232 /** 233 * Fires when comment cookies are sanitized. 234 * 235 * @since 2.0.11 236 */ 220 237 do_action( 'sanitize_comment_cookies' ); 221 238 222 239 /** … … 262 279 */ 263 280 $GLOBALS['wp_roles'] = new WP_Roles(); 264 281 282 /** 283 * Fires before the theme is loaded. 284 * 285 * @since 2.6.0 286 */ 265 287 do_action( 'setup_theme' ); 266 288 267 289 // Define the template related constants. … … 294 316 include( TEMPLATEPATH . '/functions.php' ); 295 317 } 296 318 319 /** 320 * Fires after the theme is loaded. 321 * 322 * @since 3.0.0 323 */ 297 324 do_action( 'after_setup_theme' ); 298 325 299 326 // Set up current user. 300 327 $wp->init(); 301 328 302 329 /** 330 * Fires after WordPress has finished loading but before any headers are sent. 331 * 303 332 * Most of WP is loaded at this stage, and the user is authenticated. WP continues 304 333 * to load on the init hook that follows (e.g. widgets), and many plugins instantiate 305 334 * themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.). 306 335 * 307 336 * If you wish to plug an action once WP is loaded, use the wp_loaded hook below. 337 * 338 * @since 1.5.2 308 339 */ 309 340 do_action( 'init' ); 310 341