~canonical-sysadmins/wordpress/4.1.3

« back to all changes in this revision

Viewing changes to wp-admin/nav-menus.php

  • Committer: Nick Moffitt
  • Date: 2015-01-15 11:05:37 UTC
  • mfrom: (1.1.1 wp4-upstream)
  • Revision ID: nick.moffitt@canonical.com-20150115110537-8bp1y42eyg0jsa7c
Tags: 4.1
MergeĀ upstreamĀ versionĀ 4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
// Permissions Check
22
22
if ( ! current_user_can('edit_theme_options') )
23
 
        wp_die( __( 'Cheatin’ uh?' ) );
 
23
        wp_die( __( 'Cheatin’ uh?' ), 403 );
24
24
 
25
25
wp_enqueue_script( 'nav-menu' );
26
26
 
380
380
}
381
381
 
382
382
// Get all nav menus.
383
 
$nav_menus = wp_get_nav_menus( array('orderby' => 'name') );
 
383
$nav_menus = wp_get_nav_menus();
384
384
$menu_count = count( $nav_menus );
385
385
 
386
386
// Are we on the add new screen?
492
492
 
493
493
if ( ! $locations_screen ) : // Main tab
494
494
        $overview  = '<p>' . __( 'This screen is used for managing your custom navigation menus.' ) . '</p>';
495
 
        $overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a &#8220;Custom Menu&#8221; widget on the <a href="%1$s">Widgets</a> screen. If your theme does not support the custom menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty Fourteen', 'Twenty Thirteen' ) . '</p>';
 
495
        $overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a &#8220;Custom Menu&#8221; widget on the <a href="%1$s">Widgets</a> screen. If your theme does not support the custom menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty Fifteen', 'Twenty Fourteen' ) . '</p>';
496
496
        $overview .= '<p>' . __( 'From this screen you can:' ) . '</p>';
497
497
        $overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>';
498
498
        $overview .= '<li>' . __( 'Add, organize, and modify individual menu items' ) . '</li></ul>';