Ticket #35305: 35305.patch
File 35305.patch, 4.0 KB (added by , 7 years ago) |
---|
-
wp-admin/includes/plugin.php
1057 1057 * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. 1058 1058 * @param string $menu_title The text to be used for the menu. 1059 1059 * @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). 1061 1061 * @param callable $function The function to be called to output the content for this page. 1062 1062 * @param string $icon_url The URL to the icon to be used for this menu. 1063 1063 * * Pass a base64-encoded SVG using a data URI, which will be colored to match … … 1127 1127 * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. 1128 1128 * @param string $menu_title The text to be used for the menu. 1129 1129 * @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). 1131 1131 * @param callable $function The function to be called to output the content for this page. 1132 1132 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. 1133 1133 */ -
wp-admin/includes/template.php
887 887 * @param string|array|WP_Screen $screen Optional. The screen or screens on which to show the box 888 888 * (such as a post type, 'link', or 'comment'). Accepts a single 889 889 * 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. 891 894 * @param string $context Optional. The context within the screen where the boxes 892 895 * should display. Available contexts vary from screen to 893 896 * screen. Post edit screen contexts include 'normal', 'side', … … 982 985 * @global array $wp_meta_boxes 983 986 * 984 987 * @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. 986 992 * @param string $context box context 987 993 * @param mixed $object gets passed to the box callback function as first parameter 988 994 * @return int number of meta_boxes