WordPress.org

Make WordPress Core

Ticket #24115: 24115.2.diff

File 24115.2.diff, 2.4 KB (added by DrewAPicture, 11 months ago)
  • wp-admin/nav-menus.php

     
    472472wp_initial_nav_menu_meta_boxes(); 
    473473 
    474474if ( ! current_theme_supports( 'menus' ) && ! $num_locations ) 
    475         $messages[] = '<div id="message" class="updated"><p>' . __('The current theme does not natively support menus, but you can use the &#8220;Custom Menu&#8221; widget to add any menus you create here to the theme&#8217;s sidebar.') . '</p></div>'; 
     475        $messages[] = '<div id="message" class="updated"><p>' . sprintf( __( 'Your theme does not natively support menus, but you can use them in sidebars by adding a &#8220;Custom Menus&#8221; widget on the <a href="%s">Widgets</a> screen.' ), admin_url( 'widgets.php' ) ) . '</p></div>'; 
    476476 
    477477if ( ! $locations_screen ) : // Main tab 
    478478        $overview  = '<p>' . __( 'This screen is used for managing your custom navigation menus.' ) . '</p>'; 
    479         $overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a Custom Menus widget on the <a href="%s">Widgets</a> screen. ' ), admin_url( 'widgets.php') ); 
     479        $overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a &#8220;Custom Menus&#8221; widget on the <a href="%s">Widgets</a> screen. ' ), admin_url( 'widgets.php') ); 
    480480        $overview .= sprintf( __( 'If your theme does not support the custom menus feature (the default themes, %1$s and %2$s, do), you can learn about adding this support by following the Documentation link to the side.' ), 'Twenty Thirteen', 'Twenty Twelve' ) . '</p>'; 
    481481        $overview .= '<p>' . __( 'From this screen you can:' ) . '</p>'; 
    482482        $overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>'; 
  • wp-content/themes/twentythirteen/functions.php

     
    8686        ) ); 
    8787 
    8888        // This theme uses wp_nav_menu() in one location. 
    89         register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) ); 
     89        // register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) ); 
    9090 
    9191        /* 
    9292         * This theme uses a custom image size for featured images, displayed on