Changeset 40967
- Timestamp:
- 06/30/2017 04:17:56 AM (7 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r39890 r40967 1061 1061 * @param string $menu_title The text to be used for the menu. 1062 1062 * @param string $capability The capability required for this menu to be displayed to the user. 1063 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1063 * @param string $menu_slug The slug name to refer to this menu by. Should be unique for this menu page and only 1064 * include lowercase alphanumeric, dashes, and underscores characters to be compatible 1065 * with sanitize_key(). 1064 1066 * @param callable $function The function to be called to output the content for this page. 1065 1067 * @param string $icon_url The URL to the icon to be used for this menu. … … 1127 1129 * @global array $_parent_pages 1128 1130 * 1129 * @param string $parent_slug The slug name for the parent menu (or the file name of a standard WordPress admin page). 1130 * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. 1131 * @param string $parent_slug The slug name for the parent menu (or the file name of a standard 1132 * WordPress admin page). 1133 * @param string $page_title The text to be displayed in the title tags of the page when the menu 1134 * is selected. 1131 1135 * @param string $menu_title The text to be used for the menu. 1132 1136 * @param string $capability The capability required for this menu to be displayed to the user. 1133 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1137 * @param string $menu_slug The slug name to refer to this menu by. Should be unique for this menu 1138 * and only include lowercase alphanumeric, dashes, and underscores characters 1139 * to be compatible with sanitize_key(). 1134 1140 * @param callable $function The function to be called to output the content for this page. 1135 1141 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. -
trunk/src/wp-admin/includes/template.php
r40823 r40967 893 893 * (such as a post type, 'link', or 'comment'). Accepts a single 894 894 * screen ID, WP_Screen object, or array of screen IDs. Default 895 * is the current screen. 895 * is the current screen. If you have used add_menu_page() or 896 * add_submenu_page() to create a new screen (and hence screen_id), 897 * make sure your menu slug conforms to the limits of sanitize_key() 898 * otherwise the 'screen' menu may not correctly render on your page. 896 899 * @param string $context Optional. The context within the screen where the boxes 897 900 * should display. Available contexts vary from screen to … … 988 991 * 989 992 * @staticvar bool $already_sorted 990 * @param string|WP_Screen $screen Screen identifier 993 * 994 * @param string|WP_Screen $screen Screen identifier. If you have used add_menu_page() or 995 * add_submenu_page() to create a new screen (and hence screen_id) 996 * make sure your menu slug conforms to the limits of sanitize_key() 997 * otherwise the 'screen' menu may not correctly render on your page. 991 998 * @param string $context box context 992 999 * @param mixed $object gets passed to the box callback function as first parameter
Note: See TracChangeset
for help on using the changeset viewer.