mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
Customizer: Add link to Widgets panel from Menus panel description.
Props celloexpressions. Fixes #32742. git-svn-id: https://develop.svn.wordpress.org/trunk@33036 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2ef2ac5e93
commit
552879c842
@ -399,9 +399,15 @@ final class WP_Customize_Nav_Menus {
|
||||
$this->manager->register_control_type( 'WP_Customize_Nav_Menu_Item_Control' );
|
||||
|
||||
// Create a panel for Menus.
|
||||
$description = '<p>' . __( 'This panel is used for managing navigation menus for content you have already published on your site. You can create menus and add items for existing content such as pages, posts, categories, tags, formats, or custom links.' ) . '</p>';
|
||||
if ( current_theme_supports( 'widgets' ) ) {
|
||||
$description .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme or in <a href="%s">widget areas</a> by adding a “Custom Menu” widget.' ), "javascript:wp.customize.panel( 'widgets' ).focus();" ) . '</p>';
|
||||
} else {
|
||||
$description .= '<p>' . __( 'Menus can be displayed in locations defined by your theme.' ) . '</p>';
|
||||
}
|
||||
$this->manager->add_panel( new WP_Customize_Nav_Menus_Panel( $this->manager, 'nav_menus', array(
|
||||
'title' => __( 'Menus' ),
|
||||
'description' => '<p>' . __( 'This panel is used for managing navigation menus for content you have already published on your site. You can create menus and add items for existing content such as pages, posts, categories, tags, formats, or custom links.' ) . '</p><p>' . __( 'Menus can be displayed in locations defined by your theme or in widget areas by adding a "Custom Menu" widget.' ) . '</p>',
|
||||
'description' => $description,
|
||||
'priority' => 100,
|
||||
// 'theme_supports' => 'menus|widgets', @todo allow multiple theme supports
|
||||
) ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user