Changeset 32643 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 05/29/2015 02:05:26 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r32642 r32643 1005 1005 * that the user has the required capability as well. 1006 1006 * 1007 * @global array $menu 1008 * @global array $admin_page_hooks 1009 * @global array $_registered_pages 1010 * @global array $_parent_pages 1011 * 1007 1012 * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected 1008 1013 * @param string $menu_title The text to be used for the menu … … 1063 1068 * that the user has the required capability as well. 1064 1069 * 1070 * @global int $_wp_last_object_menu 1071 * 1065 1072 * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected 1066 1073 * @param string $menu_title The text to be used for the menu … … 1089 1096 * that the user has the required capability as well. 1090 1097 * 1098 * @global int $_wp_last_utility_menu 1099 * 1091 1100 * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected 1092 1101 * @param string $menu_title The text to be used for the menu … … 1115 1124 * that the user has the required capability as well. 1116 1125 * 1126 * @global array $submenu 1127 * @global array $menu 1128 * @global type $_wp_real_parent_file 1129 * @global bool $_wp_submenu_nopriv 1130 * @global array $_registered_pages 1131 * @global array $_parent_pages 1132 * 1117 1133 * @param string $parent_slug The slug name for the parent menu (or the file name of a standard WordPress admin page) 1118 1134 * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected … … 1125 1141 */ 1126 1142 function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { 1127 global $submenu; 1128 global $menu; 1129 global $_wp_real_parent_file; 1130 global $_wp_submenu_nopriv; 1131 global $_registered_pages; 1132 global $_parent_pages; 1143 global $submenu, $menu, $_wp_real_parent_file, $_wp_submenu_nopriv, 1144 $_registered_pages, $_parent_pages; 1133 1145 1134 1146 $menu_slug = plugin_basename( $menu_slug ); … … 1416 1428 * @since 3.1.0 1417 1429 * 1430 * @global array $menu 1431 * 1418 1432 * @param string $menu_slug The slug of the menu 1419 1433 * @return array|bool The removed menu on success, False if not found … … 1437 1451 * @since 3.1.0 1438 1452 * 1453 * @global array $submenu 1454 * 1439 1455 * @param string $menu_slug The slug for the parent menu 1440 1456 * @param string $submenu_slug The slug of the submenu … … 1463 1479 * 1464 1480 * @since 3.0.0 1481 * 1482 * @global array $_parent_pages 1465 1483 * 1466 1484 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) … … 1493 1511 // Pluggable Menu Support -- Private 1494 1512 // 1495 1513 /** 1514 * 1515 * @global string $parent_file 1516 * @global array $menu 1517 * @global array $submenu 1518 * @global string $pagenow 1519 * @global string $typenow 1520 * @global string $plugin_page 1521 * @global string $_wp_real_parent_file 1522 * @global array $_wp_menu_nopriv 1523 * @global array $_wp_submenu_nopriv 1524 */ 1496 1525 function get_admin_page_parent( $parent = '' ) { 1497 global $parent_file; 1498 global $menu; 1499 global $submenu; 1500 global $pagenow; 1501 global $typenow; 1502 global $plugin_page; 1503 global $_wp_real_parent_file; 1504 global $_wp_menu_nopriv; 1505 global $_wp_submenu_nopriv; 1526 global $parent_file, $menu, $submenu, $pagenow, $typenow, 1527 $plugin_page, $_wp_real_parent_file, $_wp_menu_nopriv, $_wp_submenu_nopriv; 1506 1528 1507 1529 if ( !empty ( $parent ) && 'admin.php' != $parent ) { … … 1557 1579 } 1558 1580 1581 /** 1582 * 1583 * @global string $title 1584 * @global array $menu 1585 * @global array $submenu 1586 * @global string $pagenow 1587 * @global string $plugin_page 1588 * @global string $typenow 1589 */ 1559 1590 function get_admin_page_title() { 1560 global $title; 1561 global $menu; 1562 global $submenu; 1563 global $pagenow; 1564 global $plugin_page; 1565 global $typenow; 1591 global $title, $menu, $submenu, $pagenow, $plugin_page, $typenow; 1566 1592 1567 1593 if ( ! empty ( $title ) ) … … 1641 1667 } 1642 1668 1669 /** 1670 * 1671 * @global array $admin_page_hooks 1672 * @param string $plugin_page 1673 * @param string $parent_page 1674 */ 1643 1675 function get_plugin_page_hookname( $plugin_page, $parent_page ) { 1644 1676 global $admin_page_hooks; … … 1662 1694 } 1663 1695 1696 /** 1697 * 1698 * @global string $pagenow 1699 * @global array $menu 1700 * @global array $submenu 1701 * @global array $_wp_menu_nopriv 1702 * @global array $_wp_submenu_nopriv 1703 * @global string $plugin_page 1704 * @global array $_registered_pages 1705 */ 1664 1706 function user_can_access_admin_page() { 1665 global $pagenow; 1666 global $menu; 1667 global $submenu; 1668 global $_wp_menu_nopriv; 1669 global $_wp_submenu_nopriv; 1670 global $plugin_page; 1671 global $_registered_pages; 1707 global $pagenow, $menu, $submenu, $_wp_menu_nopriv, $_wp_submenu_nopriv, 1708 $plugin_page, $_registered_pages; 1672 1709 1673 1710 $parent = get_admin_page_parent(); … … 1742 1779 * @since 2.7.0 1743 1780 * 1781 * @global array $new_whitelist_options 1782 * 1744 1783 * @param string $option_group A settings group name. Should correspond to a whitelisted option key name. 1745 1784 * Default whitelisted option key names include "general," "discussion," and "reading," among others. … … 1769 1808 * 1770 1809 * @since 2.7.0 1810 * 1811 * @global array $new_whitelist_options 1771 1812 * 1772 1813 * @param string $option_group … … 1799 1840 * @since 2.7.0 1800 1841 * 1842 * @global array $new_whitelist_options 1843 * 1801 1844 * @param array $options 1802 1845 * @return array … … 1816 1859 * 1817 1860 * @since 2.7.0 1861 * 1862 * @global array $whitelist_options 1818 1863 * 1819 1864 * @param array $new_options … … 1848 1893 * @since 2.7.0 1849 1894 * 1895 * @global array $whitelist_options 1896 * 1850 1897 * @param array $del_options 1851 1898 * @param string|array $options
Note: See TracChangeset
for help on using the changeset viewer.