'settingTransport' => 'postMessage',
'phpIntMax' => PHP_INT_MAX,
'defaultSettingValues' => array
( 'nav_menu' =>
$temp_nav_menu_setting->default,
'nav_menu_item' =>
$temp_nav_menu_item_setting->default,
),
'locationSlugMappedToName' =>
get_registered_nav_menus(),
);
$data =
sprintf( 'var _wpCustomizeNavMenusSettings = %s;',
wp_json_encode( $settings ) );
wp_scripts()->
add_data( 'customize-nav-menus', 'data',
$data );
// This is copied from nav-menus.php, and it has an unfortunate object name of `menus`.
$nav_menus_l10n = array
( 'oneThemeLocationNoMenus' => null,
'moveUp' =>
__( 'Move up one'
),
'moveDown' =>
__( 'Move down one'
),
'moveToTop' =>
__( 'Move to the top'
),
/* translators: %s: Previous item name. */
'moveUnder' =>
__( 'Move under %s'
),
/* translators: %s: Previous item name. */
'moveOutFrom' =>
__( 'Move out from under %s'
),