Make WordPress Core

Changeset 20055


Ignore:
Timestamp:
02/29/2012 11:09:38 PM (13 years ago)
Author:
koopersmith
Message:

Theme Customizer: Use a late priority when registering customize settings to ensure we catch any theme settings added earlier on init (such as nav menus). see #19910.

File:
1 edited

Legend:

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

    r20029 r20055  
    2727        add_action( 'setup_theme',  array( $this, 'setup_theme' ) );
    2828        add_action( 'admin_init',   array( $this, 'admin_init' ) );
    29         add_action( 'init',         array( $this, '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 );
    3033        add_action( 'admin_footer', array( $this, 'admin_footer' ) );
    3134
Note: See TracChangeset for help on using the changeset viewer.