Changeset 47006
- Timestamp:
- 12/23/2019 02:34:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r46868 r47006 1797 1797 // 1798 1798 /** 1799 * Gets the parent file of the current admin page. 1800 * 1801 * @since 1.5.0 1802 * 1799 1803 * @global string $parent_file 1800 1804 * @global array $menu … … 1807 1811 * @global array $_wp_submenu_nopriv 1808 1812 * 1809 * @return string 1813 * @return string The parent file of the current admin page. 1810 1814 */ 1811 1815 function get_admin_page_parent( $parent = '' ) { … … 1872 1876 1873 1877 /** 1878 * Gets the title of the current admin page. 1879 * 1880 * @since 1.5.0 1881 * 1874 1882 * @global string $title 1875 1883 * @global array $menu … … 1879 1887 * @global string $typenow 1880 1888 * 1881 * @return string 1889 * @return string The title of the current admin page. 1882 1890 */ 1883 1891 function get_admin_page_title() { … … 1955 1963 1956 1964 /** 1957 * @since 2.3.0 1965 * Gets the hook attached to the administrative page of a plugin. 1966 * 1967 * @since 1.5.0 1958 1968 * 1959 1969 * @param string $plugin_page The slug name of the plugin page. … … 1972 1982 1973 1983 /** 1984 * Gets the hook name for the administrative page of a plugin. 1985 * 1986 * @since 1.5.0 1987 * 1974 1988 * @global array $admin_page_hooks 1975 1989 * … … 2001 2015 2002 2016 /** 2017 * Determines whether the current user can access the current admin page. 2018 * 2019 * @since 1.5.0 2020 * 2003 2021 * @global string $pagenow 2004 * @global array $menu2005 * @global array $submenu2006 * @global array $_wp_menu_nopriv2007 * @global array $_wp_submenu_nopriv2022 * @global array $menu 2023 * @global array $submenu 2024 * @global array $_wp_menu_nopriv 2025 * @global array $_wp_submenu_nopriv 2008 2026 * @global string $plugin_page 2009 * @global array $_registered_pages2010 * 2011 * @return bool Whether the current user can access the current admin page.2027 * @global array $_registered_pages 2028 * 2029 * @return bool True if the current user can access the admin page, false otherwise. 2012 2030 */ 2013 2031 function user_can_access_admin_page() {
Note: See TracChangeset
for help on using the changeset viewer.