WordPress.org

Make WordPress Core

Ticket #43643: 43643.diff

File 43643.diff, 939 bytes (added by johnbillion, 4 years ago)
  • src/wp-admin/admin.php

    diff --git src/wp-admin/admin.php src/wp-admin/admin.php
    index a3dab04d3d..f70606386e 100644
    if ( isset( $plugin_page ) ) { 
    233233                /**
    234234                 * Used to call the registered callback for a plugin screen.
    235235                 *
    236                  * @ignore
     236                 * This hook uses a dynamic hook name, `$page_hook`, which refers to a mixture of plugin
     237                 * page information including:
     238                 * 1. The page type. If the plugin page is registered as a submenu page, such as for
     239                 *    Settings, the page type would be 'settings'. Otherwise the type is 'toplevel'.
     240                 * 2. A separator of '_page_'.
     241                 * 3. The plugin basename minus the file extension.
     242                 *
     243                 * Together, the three parts form the `$page_hook`. Citing the example above,
     244                 * the hook name used would be 'load-settings_page_pluginbasename'.
     245                 *
     246                 * @see get_plugin_page_hook()
     247                 *
    237248                 * @since 1.5.0
    238249                 */
    239250                do_action( $page_hook );