Changeset 45085 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 04/01/2019 02:08:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r44981 r45085 1355 1355 1356 1356 /* 1357 * Backward-compatibility for plugins using add_management page.1358 * See wp-admin/admin.php for redirect from edit.php to tools.php 1357 * Backward-compatibility for plugins using add_management_page(). 1358 * See wp-admin/admin.php for redirect from edit.php to tools.php. 1359 1359 */ 1360 1360 if ( 'tools.php' == $parent_slug ) { … … 1714 1714 * @global array $_wp_menu_nopriv 1715 1715 * @global array $_wp_submenu_nopriv 1716 * 1717 * @return string 1716 1718 */ 1717 1719 function get_admin_page_parent( $parent = '' ) { … … 1784 1786 * @global string $plugin_page 1785 1787 * @global string $typenow 1788 * 1789 * @return string 1786 1790 */ 1787 1791 function get_admin_page_title() { … … 1860 1864 * @since 2.3.0 1861 1865 * 1862 * @param string $plugin_page 1863 * @param string $parent_page 1864 * @return string|null 1866 * @param string $plugin_page The slug name of the plugin page. 1867 * @param string $parent_page The slug name for the parent menu (or the file name of a standard 1868 * WordPress admin page). 1869 * @return string|null Hook attached to the plugin page, null otherwise. 1865 1870 */ 1866 1871 function get_plugin_page_hook( $plugin_page, $parent_page ) { … … 1875 1880 /** 1876 1881 * @global array $admin_page_hooks 1877 * @param string $plugin_page 1878 * @param string $parent_page 1882 * 1883 * @param string $plugin_page The slug name of the plugin page. 1884 * @param string $parent_page The slug name for the parent menu (or the file name of a standard 1885 * WordPress admin page). 1886 * @return string Hook name for the plugin page. 1879 1887 */ 1880 1888 function get_plugin_page_hookname( $plugin_page, $parent_page ) { … … 1907 1915 * @global string $plugin_page 1908 1916 * @global array $_registered_pages 1917 * 1918 * @return bool Whether the current user can access the current admin page. 1909 1919 */ 1910 1920 function user_can_access_admin_page() {
Note: See TracChangeset
for help on using the changeset viewer.