Make WordPress Core

Ticket #35305: 35305.patch

File 35305.patch, 4.0 KB (added by GregRoss, 7 years ago)

Update doc blocks.

  • wp-admin/includes/plugin.php

     
    10571057 * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
    10581058 * @param string   $menu_title The text to be used for the menu.
    10591059 * @param string   $capability The capability required for this menu to be displayed to the user.
    1060  * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
     1060 * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu and only include lowercase alphanumeric, dashes and underscores characters to be compatible with the sanitize_key() function).
    10611061 * @param callable $function   The function to be called to output the content for this page.
    10621062 * @param string   $icon_url   The URL to the icon to be used for this menu.
    10631063 *                             * Pass a base64-encoded SVG using a data URI, which will be colored to match
     
    11271127 * @param string   $page_title  The text to be displayed in the title tags of the page when the menu is selected.
    11281128 * @param string   $menu_title  The text to be used for the menu.
    11291129 * @param string   $capability  The capability required for this menu to be displayed to the user.
    1130  * @param string   $menu_slug   The slug name to refer to this menu by (should be unique for this menu).
     1130 * @param string   $menu_slug   The slug name to refer to this menu by (should be unique for this menu and only include lowercase alphanumeric, dashes and underscores characters to be compatible with the sanitize_key() function).
    11311131 * @param callable $function    The function to be called to output the content for this page.
    11321132 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required.
    11331133 */
  • wp-admin/includes/template.php

     
    887887 * @param string|array|WP_Screen $screen        Optional. The screen or screens on which to show the box
    888888 *                                              (such as a post type, 'link', or 'comment'). Accepts a single
    889889 *                                              screen ID, WP_Screen object, or array of screen IDs. Default
    890  *                                              is the current screen.
     890 *                                              is the current screen.  If you have used add_menu_page() or
     891 *                                              add_submenu_page() to create a new screen (and hence screen_id)
     892 *                                              make sure your menu slug conforms to the limits of sanitize_key()
     893 *                                              otherwise the 'screen' menu will not appear on your page.
    891894 * @param string                 $context       Optional. The context within the screen where the boxes
    892895 *                                              should display. Available contexts vary from screen to
    893896 *                                              screen. Post edit screen contexts include 'normal', 'side',
     
    982985 * @global array $wp_meta_boxes
    983986 *
    984987 * @staticvar bool $already_sorted
    985  * @param string|WP_Screen $screen  Screen identifier
     988 * @param string|WP_Screen $screen  Screen identifier.  If you have used add_menu_page() or
     989 *                                  add_submenu_page() to create a new screen (and hence screen_id)
     990 *                                  make sure your menu slug conforms to the limits of sanitize_key()
     991 *                                  otherwise the 'screen' menu will not appear on your page.
    986992 * @param string           $context box context
    987993 * @param mixed            $object  gets passed to the box callback function as first parameter
    988994 * @return int number of meta_boxes