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.

git-svn-id: https://develop.svn.wordpress.org/trunk@20055 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-02-29 23:09:38 +00:00
parent 6afe9edf69
commit e2a48b2abb
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,10 @@ final class WP_Customize {
add_action( 'setup_theme', array( $this, 'setup_theme' ) );
add_action( 'admin_init', array( $this, 'admin_init' ) );
add_action( 'init', array( $this, 'init' ) );
// We register settings on init, so use a late priority to ensure we
// catch any theme settings added earlier on init (such as nav menus).
add_action( 'init', array( $this, 'init' ), 200 );
add_action( 'admin_footer', array( $this, 'admin_footer' ) );
add_action( 'customize_previewing', array( $this, 'customize_previewing' ) );