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: http://svn.automattic.com/wordpress/trunk@20055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
koopersmith 2012-02-29 23:09:38 +00:00
parent 839edd2e27
commit 2f229d3b7c
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' ) );