Changeset 53877
- Timestamp:
- 08/11/2022 02:01:35 PM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r53746 r53877 1777 1777 * @since 5.3.0 Added `warning` and `info` as possible values for `$type`. 1778 1778 * 1779 * @global array $wp_settings_errors Storage array of errors registered during this pageload1779 * @global array[] $wp_settings_errors Storage array of errors registered during this pageload 1780 1780 * 1781 1781 * @param string $setting Slug title of the setting to which this error applies. … … 1814 1814 * @since 3.0.0 1815 1815 * 1816 * @global array $wp_settings_errors Storage array of errors registered during this pageload1816 * @global array[] $wp_settings_errors Storage array of errors registered during this pageload 1817 1817 * 1818 1818 * @param string $setting Optional. Slug title of a specific setting whose errors you want. -
trunk/src/wp-includes/blocks/search.php
r53157 r53877 181 181 * @param array $attributes The block attributes. 182 182 * 183 * @return array Style HTML attribute.183 * @return string[] Style HTML attributes. 184 184 */ 185 185 function styles_for_block_core_search( $attributes ) { -
trunk/src/wp-includes/blocks/template-part.php
r53157 r53877 160 160 161 161 /** 162 * Returns an array of variation objects for the template part block.162 * Returns an array of variation arrays for the template part block. 163 163 * 164 * @return array Array containing the block variation objects.164 * @return array[] Array containing the block variation data in an array. 165 165 */ 166 166 function build_template_part_block_variations() { -
trunk/src/wp-includes/class-wp-block-type.php
r53268 r53877 55 55 * 56 56 * @since 5.5.0 57 * @var array|null57 * @var string[]|null 58 58 */ 59 59 public $parent = null; … … 64 64 * 65 65 * @since 6.0.0 66 * @var array|null66 * @var string[]|null 67 67 */ 68 68 public $ancestor = null; … … 113 113 * 114 114 * @since 5.8.0 115 * @var array 115 * @var array[] 116 116 */ 117 117 public $variations = array(); … … 153 153 * 154 154 * @since 5.5.0 155 * @var array155 * @var string[] 156 156 */ 157 157 public $uses_context = array(); … … 161 161 * 162 162 * @since 5.5.0 163 * @var array|null163 * @var string[]|null 164 164 */ 165 165 public $provides_context = null; … … 240 240 * @type string|null $category Block type category classification, used in 241 241 * search interfaces to arrange block types by category. 242 * @type array|null$parent Setting parent lets a block require that it is only242 * @type string[]|null $parent Setting parent lets a block require that it is only 243 243 * available when nested within the specified blocks. 244 * @type array|null$ancestor Setting ancestor makes a block available only inside the specified244 * @type string[]|null $ancestor Setting ancestor makes a block available only inside the specified 245 245 * block types at any position of the ancestor's block subtree. 246 246 * @type string|null $icon Block type icon. … … 249 249 * result in search interfaces. 250 250 * @type string|null $textdomain The translation textdomain. 251 * @type array 252 * @type array 251 * @type array[] $styles Alternative block styles. 252 * @type array[] $variations Block variations. 253 253 * @type array|null $supports Supported features. 254 254 * @type array|null $example Structured data for the block preview. 255 255 * @type callable|null $render_callback Block type render callback. 256 256 * @type array|null $attributes Block type attributes property schemas. 257 * @type array$uses_context Context values inherited by blocks of this type.258 * @type array|null$provides_context Context provided by blocks of this type.257 * @type string[] $uses_context Context values inherited by blocks of this type. 258 * @type string[]|null $provides_context Context provided by blocks of this type. 259 259 * @type string|null $editor_script Block type editor only script handle. 260 260 * @type string|null $script Block type front end and editor script handle. -
trunk/src/wp-includes/class-wp-customize-panel.php
r52621 r53877 73 73 * 74 74 * @since 4.0.0 75 * @var string|string[]75 * @var mixed[] 76 76 */ 77 77 public $theme_supports = ''; … … 147 147 * @type string $capability Capability required for the panel. 148 148 * Default `edit_theme_options`. 149 * @type string|string[]$theme_supports Theme features required to support the panel.149 * @type mixed[] $theme_supports Theme features required to support the panel. 150 150 * @type string $title Title of the panel to show in UI. 151 151 * @type string $description Description to show in the UI. -
trunk/src/wp-includes/link-template.php
r53870 r53877 4240 4240 * Along with the arguments passed in `$args`, this will contain a couple of extra arguments. 4241 4241 * 4242 * @type bool $found_avatar True if we were able to find an avatarfor this user,4243 * false or not set if we couldn't.4244 * @type string $url The URL of the avatar we found.4242 * @type bool $found_avatar True if an avatar was found for this user, 4243 * false or not set if none was found. 4244 * @type string|false $url The URL of the avatar that was found, or false. 4245 4245 * } 4246 4246 */ -
trunk/src/wp-includes/meta.php
r53827 r53877 1232 1232 * @param string $primary_id_column Primary ID column name. 1233 1233 * @param object $context Optional. The main query object 1234 * @return array Associative array of `JOIN` and `WHERE` SQL. 1234 * @return string[]|false { 1235 * Array containing JOIN and WHERE SQL clauses to append to the main query, 1236 * or false if no table exists for the requested meta type. 1237 * 1238 * @type string $join SQL fragment to append to the main JOIN clause. 1239 * @type string $where SQL fragment to append to the main WHERE clause. 1240 * } 1235 1241 */ 1236 1242 function get_meta_sql( $meta_query, $type, $primary_table, $primary_id_column, $context = null ) { -
trunk/src/wp-includes/post.php
r53837 r53877 862 862 * correspond to a WP_Post object, an associative array, or a numeric array, 863 863 * respectively. Default OBJECT. 864 * @return WP_Post[]| int[] Array of post objects or post IDs.864 * @return WP_Post[]|array[]|int[] Array of post objects, arrays, or IDs, depending on `$output`. 865 865 */ 866 866 function get_children( $args = '', $output = OBJECT ) { … … 5807 5807 * @since 1.5.1 5808 5808 * 5809 * @param int $page_id Page ID.5810 * @param array$pages List of page objects from which descendants should be identified.5811 * @return arrayList of page children.5809 * @param int $page_id Page ID. 5810 * @param WP_Post[] $pages List of page objects from which descendants should be identified. 5811 * @return WP_Post[] List of page children. 5812 5812 */ 5813 5813 function get_page_children( $page_id, $pages ) { -
trunk/src/wp-includes/rest-api.php
r53455 r53877 1192 1192 * @param mixed $id_or_email The Gravatar to retrieve a URL for. Accepts a user_id, gravatar md5 hash, 1193 1193 * user email, WP_User object, WP_Post object, or WP_Comment object. 1194 * @return arrayAvatar URLs keyed by size. Each value can be a URL string or boolean false.1194 * @return (string|false)[] Avatar URLs keyed by size. Each value can be a URL string or boolean false. 1195 1195 */ 1196 1196 function rest_get_avatar_urls( $id_or_email ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
r53760 r53877 572 572 * @since 5.5.0 573 573 * 574 * @param mixed$item Unmarked up and untranslated plugin data from {@see get_plugin_data()}.574 * @param array $item Unmarked up and untranslated plugin data from {@see get_plugin_data()}. 575 575 * @param WP_REST_Request $request Request object. 576 576 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. -
trunk/src/wp-includes/rest-api/search/class-wp-rest-term-search-handler.php
r49955 r53877 42 42 * 43 43 * @param WP_REST_Request $request Full REST request. 44 * @return array Associative array containing an `WP_REST_Search_Handler::RESULT_IDS` containing 45 * an array of found IDs and `WP_REST_Search_Handler::RESULT_TOTAL` containing the 46 * total count for the matching search results. 44 * @return array { 45 * Associative array containing found IDs and total count for the matching search results. 46 * 47 * @type int[] $ids Found IDs. 48 * @type string|int|WP_Error $total Numeric string containing the number of terms in that 49 * taxonomy, 0 if there are no results, or WP_Error if 50 * the requested taxonomy does not exist. 51 * } 47 52 */ 48 53 public function search_items( WP_REST_Request $request ) { … … 133 138 * 134 139 * @param int $id Item ID. 135 * @return array Links for the given item.140 * @return array[] Array of link arrays for the given item. 136 141 */ 137 142 public function prepare_item_links( $id ) { -
trunk/src/wp-includes/revision.php
r53842 r53877 18 18 * for insertion as a post revision. Default empty array. 19 19 * @param bool $deprecated Not used. 20 * @return arrayArray of fields that can be versioned.20 * @return string[] Array of fields that can be versioned. 21 21 */ 22 22 function _wp_post_revision_fields( $post = array(), $deprecated = false ) { … … 48 48 * @since 4.5.0 The `$post` parameter was added. 49 49 * 50 * @param array$fields List of fields to revision. Contains 'post_title',51 * 'post_content', and 'post_excerpt' by default.52 * @param array $post A post array being processed for insertion as a post revision.50 * @param string[] $fields List of fields to revision. Contains 'post_title', 51 * 'post_content', and 'post_excerpt' by default. 52 * @param array $post A post array being processed for insertion as a post revision. 53 53 */ 54 54 $fields = apply_filters( '_wp_post_revision_fields', $fields, $post ); … … 490 490 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. 491 491 * @param array|null $args Optional. Arguments for retrieving post revisions. Default null. 492 * @return array An array of revisions, or an empty array if none.492 * @return WP_Post[]|int[] Array of revision objects or IDs, or an empty array if none. 493 493 */ 494 494 function wp_get_post_revisions( $post = 0, $args = null ) { -
trunk/src/wp-includes/taxonomy.php
r53873 r53877 1857 1857 * @internal The `$deprecated` parameter is parsed for backward compatibility only. 1858 1858 * 1859 * @param array|string $args Optional. Array o f arguments that get passed to get_terms().1860 * Default empty array.1859 * @param array|string $args Optional. Array or string of arguments. See WP_Term_Query::__construct() 1860 * for information on accepted arguments. Default empty array. 1861 1861 * @param array|string $deprecated Optional. Argument array, when using the legacy function parameter format. 1862 1862 * If present, this parameter will be interpreted as `$args`, and the first … … 4701 4701 * linked to its archive. 4702 4702 * } 4703 * @return arrayList of taxonomies.4703 * @return string[] List of taxonomies. 4704 4704 */ 4705 4705 function get_the_taxonomies( $post = 0, $args = array() ) { -
trunk/src/wp-includes/user.php
r53818 r53877 1214 1214 * @since 5.1.0 1215 1215 * 1216 * @param null| string$result The value to return instead. Default null to continue with the query.1217 * @param string 1218 * 1219 * @param int |null $site_id Optional. The site ID to count users for. Defaults to the current site.1216 * @param null|array $result The value to return instead. Default null to continue with the query. 1217 * @param string $strategy Optional. The computational strategy to use when counting the users. 1218 * Accepts either 'time' or 'memory'. Default 'time'. 1219 * @param int $site_id The site ID to count users for. 1220 1220 */ 1221 1221 $pre = apply_filters( 'pre_count_users', null, $strategy, $site_id ); … … 3744 3744 * @access private 3745 3745 * 3746 * @return arrayList of core privacy action types.3746 * @return string[] List of core privacy action types. 3747 3747 */ 3748 3748 function _wp_privacy_action_request_types() { … … 3758 3758 * @since 4.9.6 3759 3759 * 3760 * @param array $exportersAn array of personal data exporters.3761 * @return array An array of personal data exporters.3760 * @param array[] $exporters An array of personal data exporters. 3761 * @return array[] An array of personal data exporters. 3762 3762 */ 3763 3763 function wp_register_user_personal_data_exporter( $exporters ) {
Note: See TracChangeset
for help on using the changeset viewer.