Changeset 46662
- Timestamp:
- 11/05/2019 09:28:51 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/bookmark.php
r45932 r46662 118 118 119 119 /** 120 * Retrieves the link categor ies associated with the link specified.120 * Retrieves the link category IDs associated with the link specified. 121 121 * 122 122 * @since 2.1.0 123 123 * 124 * @param int $link_id Link ID to look up 125 * @return array The requested link's categories124 * @param int $link_id Link ID to look up. 125 * @return int[] The IDs of the requested link's categories. 126 126 */ 127 127 function wp_get_link_cats( $link_id = 0 ) { -
trunk/src/wp-admin/includes/class-wp-list-table.php
r46610 r46662 1218 1218 * @since 3.1.0 1219 1219 * 1220 * @return array Listof CSS classes for the table tag.1220 * @return string[] Array of CSS classes for the table tag. 1221 1221 */ 1222 1222 protected function get_table_classes() { -
trunk/src/wp-admin/includes/class-wp-privacy-requests-table.php
r46374 r46662 36 36 * @since 4.9.6 37 37 * 38 * @return array Array of columns.38 * @return string[] Array of column titles keyed by their column name. 39 39 */ 40 40 public function get_columns() { … … 138 138 * @since 4.9.6 139 139 * 140 * @return array Associative array of views in the format of $view_name => $view_markup.140 * @return string[] An array of HTML links keyed by their view. 141 141 */ 142 142 protected function get_views() { … … 201 201 * @since 4.9.6 202 202 * 203 * @return array List of bulk actions.203 * @return string[] Array of bulk action labels keyed by their action. 204 204 */ 205 205 protected function get_bulk_actions() { -
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r45932 r46662 171 171 * @global string $role 172 172 * 173 * @return array An array of HTML links, one for eachview.173 * @return string[] An array of HTML links keyed by their view. 174 174 */ 175 175 protected function get_views() { … … 260 260 * @since 3.1.0 261 261 * 262 * @return array Array of bulk actions.262 * @return string[] Array of bulk action labels keyed by their action. 263 263 */ 264 264 protected function get_bulk_actions() { … … 349 349 * @since 3.1.0 350 350 * 351 * @return array Array in which the key is the ID of the column, 352 * and the value is the description. 351 * @return string[] Array of column titles keyed by their column name. 353 352 */ 354 353 public function get_columns() { -
trunk/src/wp-admin/includes/misc.php
r45932 r46662 63 63 * @param string $filename Filename to extract the strings from. 64 64 * @param string $marker The marker to extract the strings from. 65 * @return arrayAn array of strings from a file (.htaccess) from between BEGIN and END markers.65 * @return string[] An array of strings from a file (.htaccess) from between BEGIN and END markers. 66 66 */ 67 67 function extract_from_markers( $filename, $marker ) { -
trunk/src/wp-admin/includes/nav-menu.php
r46644 r46662 1086 1086 * @since 3.0.0 1087 1087 * 1088 * @return array Columns.1088 * @return string[] Array of column titles keyed by their column name. 1089 1089 */ 1090 1090 function wp_nav_menu_manage_columns() { -
trunk/src/wp-admin/includes/plugin.php
r46570 r46662 227 227 * 228 228 * @param string $plugin Path to the plugin file relative to the plugins directory. 229 * @return array List of files relative to the plugin root.229 * @return string[] Array of file names relative to the plugin root. 230 230 */ 231 231 function get_plugin_files( $plugin ) { … … 274 274 * 275 275 * @param string $plugin_folder Optional. Relative path to single plugin folder. 276 * @return array Key is the plugin file path and the value is an array of the plugin data.276 * @return array[] Array of arrays of plugin data, keyed by plugin file name. See `get_plugin_data()`. 277 277 */ 278 278 function get_plugins( $plugin_folder = '' ) { … … 355 355 * 356 356 * @since 3.0.0 357 * @return array Key is the mu-plugin file path and the value is an array of the mu-plugin data.357 * @return array[] Array of arrays of mu-plugin data, keyed by plugin file name. See `get_plugin_data()`. 358 358 */ 359 359 function get_mu_plugins() { … … 424 424 * 425 425 * @since 3.0.0 426 * @return array Key is the file path and the value is an array of the plugin data.426 * @return array[] Array of arrays of dropin plugin data, keyed by plugin file name. See `get_plugin_data()`. 427 427 */ 428 428 function get_dropins() { … … 472 472 * 473 473 * @since 3.0.0 474 * @return array Key is file name. The value is an array, with the first value the474 * @return array[] Key is file name. The value is an array, with the first value the 475 475 * purpose of the drop-in and the second value the name of the constant that must be 476 476 * true for the drop-in to be used, or true if no constant is required. … … 1030 1030 * 1031 1031 * @since 2.5.0 1032 * @return array invalid plugins, plugin as key, error as value1032 * @return WP_Error[] Array of plugin errors keyed by plugin file name. 1033 1033 */ 1034 1034 function validate_active_plugins() { -
trunk/src/wp-admin/includes/post.php
r46623 r46662 1083 1083 * @since 2.5.0 1084 1084 * 1085 * @param string $type The post_type you want the statuses for 1086 * @return array As array of all the statuses for the supplied post type1085 * @param string $type The post_type you want the statuses for. Default 'post'. 1086 * @return string[] An array of all the statuses for the supplied post type. 1087 1087 */ 1088 1088 function get_available_post_statuses( $type = 'post' ) { … … 1493 1493 * 1494 1494 * @param int $thumbnail_id ID of the attachment used for thumbnail 1495 * @param mixed $postThe post ID or object associated with the thumbnail, defaults to global $post.1495 * @param int|WP_Post $post Optional. The post ID or object associated with the thumbnail, defaults to global $post. 1496 1496 * @return string html 1497 1497 */ … … 2151 2151 * 2152 2152 * @param WP_Post $post Post object. 2153 * @return array Array of block categories.2153 * @return array[] Array of block categories. 2154 2154 */ 2155 2155 function get_block_categories( $post ) { -
trunk/src/wp-admin/includes/screen.php
r46596 r46662 141 141 142 142 /** 143 * Get Hidden Meta Boxes143 * Gets an array of IDs of hidden meta boxes. 144 144 * 145 145 * @since 2.7.0 146 146 * 147 147 * @param string|WP_Screen $screen Screen identifier 148 * @return array Hidden Meta Boxes148 * @return string[] IDs of hidden meta boxes. 149 149 */ 150 150 function get_hidden_meta_boxes( $screen ) { … … 173 173 * @since 3.1.0 174 174 * 175 * @param array $hidden An arrayof meta boxes hidden by default.175 * @param string[] $hidden An array of IDs of meta boxes hidden by default. 176 176 * @param WP_Screen $screen WP_Screen object of the current screen. 177 177 */ … … 184 184 * @since 3.3.0 185 185 * 186 * @param array $hidden An arrayof hidden meta boxes.186 * @param string[] $hidden An array of IDs of hidden meta boxes. 187 187 * @param WP_Screen $screen WP_Screen object of the current screen. 188 188 * @param bool $use_defaults Whether to show the default meta boxes. … … 234 234 * @since 3.0.0 235 235 * 236 * @param mixed$hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,237 * or an existing screen object.236 * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen, 237 * or an existing screen object. 238 238 */ 239 239 function set_current_screen( $hook_name = '' ) { -
trunk/src/wp-admin/includes/taxonomy.php
r45583 r46662 74 74 * @param string[] $categories Array of category names to create. 75 75 * @param int $post_id Optional. The post ID. Default empty. 76 * @return array List of categories to create forthe given post.76 * @return int[] Array of IDs of categories assigned to the given post. 77 77 */ 78 78 function wp_create_categories( $categories, $post_id = '' ) { -
trunk/src/wp-admin/includes/template.php
r46315 r46662 200 200 * 201 201 * @param string $taxonomy Taxonomy to retrieve terms from. 202 * @param int $defaultNot used.203 * @param int $numberNumber of terms to retrieve. Defaults to 10.204 * @param bool $echoOptionally output the list as well. Defaults to true.205 * @return array Listof popular term IDs.202 * @param int $default Not used. 203 * @param int $number Number of terms to retrieve. Defaults to 10. 204 * @param bool $echo Optionally output the list as well. Defaults to true. 205 * @return int[] Array of popular term IDs. 206 206 */ 207 207 function wp_popular_terms_checklist( $taxonomy, $default = 0, $number = 10, $echo = true ) { … … 2098 2098 2099 2099 /** 2100 * Function to retrievean array of post states from a post.2100 * Retrieves an array of post states from a post. 2101 2101 * 2102 2102 * @since 5.3.0 2103 2103 * 2104 2104 * @param WP_Post $post The post to retrieve states for. 2105 * @return array The array of translated post states.2105 * @return string[] Array of post state labels keyed by their state. 2106 2106 */ 2107 2107 function get_post_states( $post ) { -
trunk/src/wp-admin/includes/theme.php
r46232 r46662 113 113 114 114 /** 115 * Get the Page Templates available in this theme115 * Gets the page templates available in this theme. 116 116 * 117 117 * @since 1.5.0 … … 120 120 * @param WP_Post|null $post Optional. The post being edited, provided for context. 121 121 * @param string $post_type Optional. Post type to get the templates for. Default 'page'. 122 * @return array Key is the template name, value is the filename of the template122 * @return string[] Array of template file names keyed by the template header name. 123 123 */ 124 124 function get_page_templates( $post = null, $post_type = 'page' ) { -
trunk/src/wp-admin/includes/translation-install.php
r46596 r46662 116 116 * @see translations_api() 117 117 * 118 * @return array Array of translations, each an array of data. If the API response results119 * in an error, an empty array will be returned.118 * @return array[] Array of translations, each an array of data, keyed by the language. If the API response results 119 * in an error, an empty array will be returned. 120 120 */ 121 121 function wp_get_available_translations() { -
trunk/src/wp-admin/includes/upgrade.php
r46290 r46662 36 36 * @param string $user_password Optional. User's chosen password. Default empty (random password). 37 37 * @param string $language Optional. Language chosen. Default empty. 38 * @return array Array keys 'url', 'user_id', 'password', and 'password_message'. 38 * @return array { 39 * Data for the newly installed site. 40 * 41 * @type string $url The URL of the site. 42 * @type int $user_id The ID of the site owner. 43 * @type string $password The password of the site owner, if their user account didn't already exist. 44 * @type string $password_message The explanatory message regarding the password. 45 * } 39 46 */ 40 47 function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '', $language = '' ) { -
trunk/src/wp-includes/blocks.php
r46586 r46662 99 99 * @since 5.0.0 100 100 * 101 * @return arrayArray of dynamic block names.101 * @return string[] Array of dynamic block names. 102 102 */ 103 103 function get_dynamic_block_names() { … … 282 282 * 283 283 * @param string $content Post content. 284 * @return array Array of parsed block objects.284 * @return array[] Array of parsed block objects. 285 285 */ 286 286 function parse_blocks( $content ) {
Note: See TracChangeset
for help on using the changeset viewer.