Ticket #32742: 32742.diff
| File 32742.diff, 1.7 KB (added by , 11 years ago) |
|---|
-
src/wp-includes/class-wp-customize-nav-menus.php
399 399 $this->manager->register_control_type( 'WP_Customize_Nav_Menu_Item_Control' ); 400 400 401 401 // Create a panel for Menus. 402 $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>'; 403 if ( current_theme_supports( 'widgets') ) { 404 $description .= 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>'; 405 } else { 406 $description .= __( 'Menus can be displayed in locations defined by your theme.' ) . '</p>'; 407 } 402 408 $this->manager->add_panel( new WP_Customize_Nav_Menus_Panel( $this->manager, 'nav_menus', array( 403 409 'title' => __( 'Menus' ), 404 '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>',410 'description' => $description, 405 411 'priority' => 100, 406 412 // 'theme_supports' => 'menus|widgets', @todo allow multiple theme supports 407 413 ) ) );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)