Make WordPress Core


Ignore:
Timestamp:
07/14/2020 11:54:26 AM (4 years ago)
Author:
johnbillion
Message:

Docs: Correct and improve inline docs for parameters that accept a callback function.

See #49572

File:
1 edited

Legend:

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

    r48450 r48473  
    621621     *     Array of arguments used to display the help tab.
    622622     *
    623      *     @type string $title    Title for the tab. Default false.
    624      *     @type string $id       Tab ID. Must be HTML-safe and should be unique for this menu.
    625      *                            It is NOT allowed to contain any empty spaces. Default false.
    626      *     @type string $content  Optional. Help tab content in plain text or HTML. Default empty string.
    627      *     @type string $callback Optional. A callback to generate the tab content. Default false.
    628      *     @type int    $priority Optional. The priority of the tab, used for ordering. Default 10.
     623     *     @type string   $title    Title for the tab. Default false.
     624     *     @type string   $id       Tab ID. Must be HTML-safe and should be unique for this menu.
     625     *                              It is NOT allowed to contain any empty spaces. Default false.
     626     *     @type string   $content  Optional. Help tab content in plain text or HTML. Default empty string.
     627     *     @type callable $callback Optional. A callback to generate the tab content. Default false.
     628     *     @type int      $priority Optional. The priority of the tab, used for ordering. Default 10.
    629629     * }
    630630     */
Note: See TracChangeset for help on using the changeset viewer.