Changeset 51299
- Timestamp:
- 07/01/2021 09:09:04 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/elements.php
r51051 r51299 13 13 * @access private 14 14 * 15 * @param 16 * @param 17 * @return string 15 * @param string $block_content Rendered block content. 16 * @param array $block Block object. 17 * @return string Filtered block content. 18 18 */ 19 19 function wp_render_elements_support( $block_content, $block ) { … … 24 24 25 25 /* 26 * For now we only care about link color.27 * This code in the future when we have a public API28 * should take advantage of WP_Theme_JSON::compute_style_properties29 * and work for any element and style.30 */26 * For now we only care about link color. 27 * This code in the future when we have a public API 28 * should take advantage of WP_Theme_JSON::compute_style_properties 29 * and work for any element and style. 30 */ 31 31 if ( null === $link_color ) { 32 32 return $block_content; -
trunk/src/wp-includes/block-supports/layout.php
r50991 r51299 36 36 * @access private 37 37 * 38 * @param 39 * @param 40 * @return string 38 * @param string $block_content Rendered block content. 39 * @param array $block Block object. 40 * @return string Filtered block content. 41 41 */ 42 42 function wp_render_layout_support_flag( $block_content, $block ) { -
trunk/src/wp-includes/class-http.php
r49927 r51299 111 111 * assumed. Default 'GET'. 112 112 * @type float $timeout How long the connection should stay open in seconds. Default 5. 113 * @type int $redirection Number of allowed redirects. Not supported by all transports 113 * @type int $redirection Number of allowed redirects. Not supported by all transports. 114 114 * Default 5. 115 115 * @type string $httpversion Version of the HTTP protocol to use. Accepts '1.0' and '1.1'. -
trunk/src/wp-includes/class-wp-query.php
r51285 r51299 19 19 20 20 /** 21 * Query vars set by the user 21 * Query vars set by the user. 22 22 * 23 23 * @since 1.5.0 … … 27 27 28 28 /** 29 * Query vars, after parsing 29 * Query vars, after parsing. 30 30 * 31 31 * @since 1.5.0 … … 35 35 36 36 /** 37 * Taxonomy query, as passed to get_tax_sql() 37 * Taxonomy query, as passed to get_tax_sql(). 38 38 * 39 39 * @since 3.1.0 … … 43 43 44 44 /** 45 * Metadata query container 45 * Metadata query container. 46 46 * 47 47 * @since 3.2.0 … … 51 51 52 52 /** 53 * Date query container 53 * Date query container. 54 54 * 55 55 * @since 3.7.0 … … 93 93 94 94 /** 95 * The amountof posts for the current query.95 * The number of posts for the current query. 96 96 * 97 97 * @since 1.5.0 … … 136 136 137 137 /** 138 * The amountof comments for the posts.138 * The number of comments for the posts. 139 139 * 140 140 * @since 2.2.0 … … 160 160 161 161 /** 162 * The amountof found posts for the current query.162 * The number of found posts for the current query. 163 163 * 164 164 * If limit clause was not used, equals $post_count. … … 170 170 171 171 /** 172 * The amountof pages.172 * The number of pages. 173 173 * 174 174 * @since 2.1.0 … … 178 178 179 179 /** 180 * The amountof comment pages.180 * The number of comment pages. 181 181 * 182 182 * @since 2.7.0 -
trunk/src/wp-includes/class-wp-term-query.php
r51298 r51299 95 95 * @type string|array $taxonomy Taxonomy name, or array of taxonomies, to which results should 96 96 * be limited. 97 * @type int|int[] $object_ids O ptional. Object ID, or array of object IDs. Results will be97 * @type int|int[] $object_ids Object ID, or array of object IDs. Results will be 98 98 * limited to terms associated with these objects. 99 99 * @type string $orderby Field(s) to order terms by. Accepts: 100 * * term fields ('name', 'slug', 'term_group', 'term_id', 'id',100 * * Term fields ('name', 'slug', 'term_group', 'term_id', 'id', 101 101 * 'description', 'parent', 'term_order'). Unless `$object_ids` 102 102 * is not empty, 'term_order' is treated the same as 'term_id'. 103 103 * * 'count' to use the number of objects associated with the term. 104 * * 'include' to match the 'order' of the $include param. 105 * * 'slug__in' to match the 'order' of the $slug param. 106 * * 'meta_value', 'meta_value_num'. 107 * the value of `$meta_key`. 108 * the array keys of `$meta_query`. 104 * * 'include' to match the 'order' of the `$include` param. 105 * * 'slug__in' to match the 'order' of the `$slug` param. 106 * * 'meta_value' 107 * * 'meta_value_num'. 108 * * The value of `$meta_key`. 109 * * The array keys of `$meta_query`. 109 110 * * 'none' to omit the ORDER BY clause. 110 * Default s to'name'.111 * Default 'name'. 111 112 * @type string $order Whether to order terms in ascending or descending order. 112 113 * Accepts 'ASC' (ascending) or 'DESC' (descending). … … 117 118 * Default empty array. 118 119 * @type int[]|string $exclude Array or comma/space-separated string of term IDs to exclude. 119 * If $include is non-empty, $excludeis ignored.120 * If `$include` is non-empty, `$exclude` is ignored. 120 121 * Default empty array. 121 122 * @type int[]|string $exclude_tree Array or comma/space-separated string of term IDs to exclude 122 * along with all of their descendant terms. If $includeis123 * non-empty, $exclude_treeis ignored. Default empty array.123 * along with all of their descendant terms. If `$include` is 124 * non-empty, `$exclude_tree` is ignored. Default empty array. 124 125 * @type int|string $number Maximum number of terms to return. Accepts ''|0 (all) or any 125 126 * positive number. Default ''|0 (all). Note that $number may 126 * not return accurate results when coupled with $object_ids.127 * not return accurate results when coupled with `$object_ids`. 127 128 * See #41796 for details. 128 129 * @type int $offset The number by which to offset the terms query. Default empty. … … 146 147 * @type bool $count Whether to return a term count. If true, will take precedence 147 148 * over `$fields`. Default false. 148 * @type string|array $name Optional.Name or array of names to return term(s) for.149 * @type string|array $name Name or array of names to return term(s) for. 149 150 * Default empty. 150 * @type string|array $slug Optional.Slug or array of slugs to return term(s) for.151 * @type string|array $slug Slug or array of slugs to return term(s) for. 151 152 * Default empty. 152 * @type int|int[] $term_taxonomy_id Optional.Term taxonomy ID, or array of term taxonomy IDs,153 * @type int|int[] $term_taxonomy_id Term taxonomy ID, or array of term taxonomy IDs, 153 154 * to match when querying terms. 154 155 * @type bool $hierarchical Whether to include terms that have non-empty descendants 155 * (even if $hide_emptyis set to true). Default true.156 * (even if `$hide_empty` is set to true). Default true. 156 157 * @type string $search Search criteria to match terms. Will be SQL-formatted with 157 158 * wildcards before and after. Default empty. … … 164 165 * Default false. 165 166 * @type string $get Whether to return terms regardless of ancestry or whether the 166 * terms are empty. Accepts 'all' or empty(disabled).167 * Default empty.167 * terms are empty. Accepts 'all' or '' (disabled). 168 * Default ''. 168 169 * @type int $child_of Term ID to retrieve child terms of. If multiple taxonomies 169 170 * are passed, `$child_of` is ignored. Default 0. … … 174 175 * Default false. 175 176 * @type string $cache_domain Unique cache key to be produced when this query is stored in 176 * an object cache. Default is'core'.177 * an object cache. Default 'core'. 177 178 * @type bool $update_term_meta_cache Whether to prime meta caches for matched terms. Default true. 178 * @type array $meta_query Optional.Meta query clauses to limit retrieved terms by.179 * @type array $meta_query Meta query clauses to limit retrieved terms by. 179 180 * See `WP_Meta_Query`. Default empty. 180 181 * @type string $meta_key Limit terms to those matching a specific metadata key. -
trunk/src/wp-includes/load.php
r51221 r51299 676 676 * 677 677 * @param bool $enable_object_cache Whether to enable loading object-cache.php (if present). 678 * 678 * Default true. 679 679 */ 680 680 if ( $first_init && apply_filters( 'enable_loading_object_cache_dropin', true ) ) { -
trunk/src/wp-includes/nav-menu.php
r50828 r51299 160 160 * @since 3.0.0 161 161 * 162 * @return int[] Associative array of egistered navigation menu IDs keyed by their162 * @return int[] Associative array of registered navigation menu IDs keyed by their 163 163 * location name. If none are registered, an empty array. 164 164 */ -
trunk/src/wp-includes/pluggable.php
r50952 r51299 2786 2786 * @param string $default URL for the default image or a default type. Accepts '404', 'retro', 'monsterid', 2787 2787 * 'wavatar', 'indenticon', 'mystery', 'mm', 'mysteryman', 'blank', or 'gravatar_default'. 2788 * Default is the value of the 'avatar_default' option, with a fallback of 'mystery'. 2789 * @param string $alt Alternative text to use in the avatar image tag. Default empty. 2788 * @param string $alt Alternative text to use in the avatar image tag. 2790 2789 * @param array $args Arguments passed to get_avatar_data(), after processing. 2791 2790 */ -
trunk/src/wp-includes/post.php
r51298 r51299 1392 1392 * the admin interface or by front-end users. While the default 1393 1393 * settings of $exclude_from_search, $publicly_queryable, $show_ui, 1394 * and $show_in_nav_menus are inherited from public, each does not1394 * and $show_in_nav_menus are inherited from $public, each does not 1395 1395 * rely on this relationship and controls a very specific intention. 1396 1396 * Default false. … … 1418 1418 * @type bool $show_in_rest Whether to include the post type in the REST API. Set this to true 1419 1419 * for the post type to be available in the block editor. 1420 * @type string $rest_base To change the base urlof REST API route. Default is $post_type.1421 * @type string $rest_controller_class REST API Controller class name. Default is 'WP_REST_Posts_Controller'.1420 * @type string $rest_base To change the base URL of REST API route. Default is $post_type. 1421 * @type string $rest_controller_class REST API controller class name. Default is 'WP_REST_Posts_Controller'. 1422 1422 * @type int $menu_position The position in the menu order the post type should appear. To work, 1423 1423 * $show_in_menu must be true. Default null (at the bottom). 1424 * @type string $menu_icon The urlto the icon to be used for this menu. Pass a base64-encoded1424 * @type string $menu_icon The URL to the icon to be used for this menu. Pass a base64-encoded 1425 1425 * SVG using a data URI, which will be colored to match the color scheme 1426 1426 * -- this should begin with 'data:image/svg+xml;base64,'. Pass the name
Note: See TracChangeset
for help on using the changeset viewer.