mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
phpdoc for wp-admin. See #7496 props santosj.
git-svn-id: https://develop.svn.wordpress.org/trunk@8645 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+19
-5
@@ -1,9 +1,23 @@
|
||||
<?php
|
||||
// This array constructs the admin menu bar.
|
||||
//
|
||||
// Menu item name
|
||||
// The minimum level the user needs to access the item: between 0 and 10
|
||||
// The URL of the item's file
|
||||
/**
|
||||
* Build Administration Menu.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs the admin menu bar.
|
||||
*
|
||||
* The elements in the array are :
|
||||
* 0: Menu item name
|
||||
* 1: Minimum level or capability required.
|
||||
* 2: The URL of the item's file
|
||||
*
|
||||
* @global array $menu
|
||||
* @name $menu
|
||||
* @var array
|
||||
*/
|
||||
$menu[0] = array(__('Dashboard'), 'read', 'index.php');
|
||||
|
||||
if (strpos($_SERVER['REQUEST_URI'], 'edit-pages.php') !== false)
|
||||
|
||||
Reference in New Issue
Block a user