WordPress.org

Make WordPress Core

Ticket #25469: wp-settings.diff

File wp-settings.diff, 1.8 KB (added by miyauchi, 8 years ago)

patch for wp-settings.php

  • src/wp-settings.php

     
    171171        unset( $network_plugin );
    172172}
    173173
     174/**
     175 * Fires after all must-use and network activated plugins have been loaded.
     176 *
     177 * @since 2.8.0
     178 */
    174179do_action( 'muplugins_loaded' );
    175180
    176181if ( is_multisite() )
     
    209214if ( WP_CACHE && function_exists( 'wp_cache_postload' ) )
    210215        wp_cache_postload();
    211216
     217/**
     218 * This hook is called once any activated plugins have been loaded.
     219 *
     220 * @since 1.5.2
     221 */
    212222do_action( 'plugins_loaded' );
    213223
    214224// Define constants which affect functionality if not already defined.
     
    217227// Add magic quotes and set up $_REQUEST ( $_GET + $_POST )
    218228wp_magic_quotes();
    219229
     230/**
     231 * Fires when sanitize comment cookies.
     232 *
     233 * @since 2.0.11
     234 */
    220235do_action( 'sanitize_comment_cookies' );
    221236
    222237/**
     
    262277 */
    263278$GLOBALS['wp_roles'] = new WP_Roles();
    264279
     280
     281/**
     282 * Fires when setup theme.
     283 *
     284 * @since 2.6.0
     285 */
    265286do_action( 'setup_theme' );
    266287
    267288// Define the template related constants.
     
    294315                include( TEMPLATEPATH . '/functions.php' );
    295316}
    296317
     318/**
     319 * Fires after the theme is initialiazed.
     320 *
     321 * @since 3.0.0
     322 */
    297323do_action( 'after_setup_theme' );
    298324
    299325// Set up current user.
     
    300326$wp->init();
    301327
    302328/**
     329 * Runs after WordPress has finished loading but before any headers are sent.
     330 *
    303331 * Most of WP is loaded at this stage, and the user is authenticated. WP continues
    304332 * to load on the init hook that follows (e.g. widgets), and many plugins instantiate
    305333 * themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
    306334 *
    307335 * If you wish to plug an action once WP is loaded, use the wp_loaded hook below.
     336 *
     337 * @since 1.5.2
    308338 */
    309339do_action( 'init' );
    310340