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