Make WordPress Core

Ticket #25469: 25469.diff

File 25469.diff, 1.9 KB (added by DrewAPicture, 10 years ago)

Final.

  • src/wp-settings.php

     
    171171        unset( $network_plugin );
    172172}
    173173
     174/**
     175 * Fires once all must-use and network activated plugins have 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 * 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 */
    212224do_action( 'plugins_loaded' );
    213225
    214226// Define constants which affect functionality if not already defined.
     
    217229// Add magic quotes and set up $_REQUEST ( $_GET + $_POST )
    218230wp_magic_quotes();
    219231
     232/**
     233 * Fires when comment cookies are sanitized.
     234 *
     235 * @since 2.0.11
     236 */
    220237do_action( 'sanitize_comment_cookies' );
    221238
    222239/**
     
    262279 */
    263280$GLOBALS['wp_roles'] = new WP_Roles();
    264281
     282/**
     283 * Fires before the theme is loaded.
     284 *
     285 * @since 2.6.0
     286 */
    265287do_action( 'setup_theme' );
    266288
    267289// Define the template related constants.
     
    294316                include( TEMPLATEPATH . '/functions.php' );
    295317}
    296318
     319/**
     320 * Fires after the theme is loaded.
     321 *
     322 * @since 3.0.0
     323 */
    297324do_action( 'after_setup_theme' );
    298325
    299326// Set up current user.
    300327$wp->init();
    301328
    302329/**
     330 * Fires after WordPress has finished loading but before any headers are sent.
     331 *
    303332 * Most of WP is loaded at this stage, and the user is authenticated. WP continues
    304333 * to load on the init hook that follows (e.g. widgets), and many plugins instantiate
    305334 * themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
    306335 *
    307336 * If you wish to plug an action once WP is loaded, use the wp_loaded hook below.
     337 *
     338 * @since 1.5.2
    308339 */
    309340do_action( 'init' );
    310341