]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/menu.php
WordPress 4.6.3
[autoinstalls/wordpress.git] / wp-admin / includes / menu.php
index 74804022b7034b607256046e6fed685e356e193c..1c6f545f48a34e62db1e6181ba16af16a50f91bf 100644 (file)
@@ -229,7 +229,7 @@ function add_menu_classes($menu) {
        }
 
        /**
        }
 
        /**
-        * Filter administration menus array with classes added for top-level items.
+        * Filters administration menus array with classes added for top-level items.
         *
         * @since 2.7.0
         *
         *
         * @since 2.7.0
         *
@@ -241,7 +241,7 @@ function add_menu_classes($menu) {
 uksort($menu, "strnatcasecmp"); // make it all pretty
 
 /**
 uksort($menu, "strnatcasecmp"); // make it all pretty
 
 /**
- * Filter whether to enable custom ordering of the administration menu.
+ * Filters whether to enable custom ordering of the administration menu.
  *
  * See the {@see 'menu_order'} filter for reordering menu items.
  *
  *
  * See the {@see 'menu_order'} filter for reordering menu items.
  *
@@ -258,7 +258,7 @@ if ( apply_filters( 'custom_menu_order', false ) ) {
        $default_menu_order = $menu_order;
 
        /**
        $default_menu_order = $menu_order;
 
        /**
-        * Filter the order of administration menu items.
+        * Filters the order of administration menu items.
         *
         * A truthy value must first be passed to the {@see 'custom_menu_order'} filter
         * for this filter to work. Use the following to enable custom menu ordering:
         *
         * A truthy value must first be passed to the {@see 'custom_menu_order'} filter
         * for this filter to work. Use the following to enable custom menu ordering:
@@ -339,7 +339,7 @@ if ( !user_can_access_admin_page() ) {
         */
        do_action( 'admin_page_access_denied' );
 
         */
        do_action( 'admin_page_access_denied' );
 
-       wp_die( __( 'You do not have sufficient permissions to access this page.' ), 403 );
+       wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
 }
 
 $menu = add_menu_classes($menu);
 }
 
 $menu = add_menu_classes($menu);