WordPress.org

Make WordPress Core

Changeset 20058


Ignore:
Timestamp:
03/01/2012 12:14:51 AM (7 years ago)
Author:
koopersmith
Message:

Theme Customizer: Use wp_loaded for customize setting registration. see #19910.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize.php

    r20055 r20058  
    2727        add_action( 'setup_theme',  array( $this, 'setup_theme' ) );
    2828        add_action( 'admin_init',   array( $this, 'admin_init' ) );
    29 
    30         // We register settings on init, so use a late priority to ensure we
    31         // catch any theme settings added earlier on init (such as nav menus).
    32         add_action( 'init',         array( $this, 'init' ), 200 );
     29        add_action( 'wp_loaded',    array( $this, 'wp_loaded' ) );
    3330        add_action( 'admin_footer', array( $this, 'admin_footer' ) );
    3431
     
    9996
    10097    /**
    101      * Register styles/scripts and Init the preview of each setting
    102      *
    103      * @since 3.4.0
    104      */
    105     public function init() {
     98     * Register styles/scripts and initialize the preview of each setting
     99     *
     100     * @since 3.4.0
     101     */
     102    public function wp_loaded() {
    106103        do_action( 'customize_register' );
    107104
Note: See TracChangeset for help on using the changeset viewer.