WordPress.org

Make WordPress Core

Changeset 47546


Ignore:
Timestamp:
04/03/2020 05:21:25 PM (16 months ago)
Author:
SergeyBiryukov
Message:

Docs: Add documentation for the $parent parameter of get_admin_page_parent().

Props subrataemfluence.
Fixes #45849.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r47219 r47546  
    18131813 *
    18141814 * @global string $parent_file
    1815  * @global array $menu
    1816  * @global array $submenu
     1815 * @global array  $menu
     1816 * @global array  $submenu
    18171817 * @global string $pagenow
    18181818 * @global string $typenow
    18191819 * @global string $plugin_page
    1820  * @global array $_wp_real_parent_file
    1821  * @global array $_wp_menu_nopriv
    1822  * @global array $_wp_submenu_nopriv
    1823  *
     1820 * @global array  $_wp_real_parent_file
     1821 * @global array  $_wp_menu_nopriv
     1822 * @global array  $_wp_submenu_nopriv
     1823 *
     1824 * @param string $parent The slug name for the parent menu (or the file name of a standard
     1825 *                       WordPress admin page). Default empty string.
    18241826 * @return string The parent file of the current admin page.
    18251827 */
Note: See TracChangeset for help on using the changeset viewer.