Docs: Miscellaneous DocBlock corrections.
See #49572. Built from https://develop.svn.wordpress.org/trunk@48198 git-svn-id: http://core.svn.wordpress.org/trunk@47967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
58ad216087
commit
c892c420b7
|
@ -2154,7 +2154,7 @@ class WP_Site_Health {
|
||||||
*
|
*
|
||||||
* Returns a boolean value of `true` if a scheduled task has been missed and ends processing.
|
* Returns a boolean value of `true` if a scheduled task has been missed and ends processing.
|
||||||
*
|
*
|
||||||
* If the list of crons is an instance of WP_Error, return the instance instead of a boolean value.
|
* If the list of crons is an instance of WP_Error, returns the instance instead of a boolean value.
|
||||||
*
|
*
|
||||||
* @since 5.2.0
|
* @since 5.2.0
|
||||||
*
|
*
|
||||||
|
@ -2180,7 +2180,7 @@ class WP_Site_Health {
|
||||||
*
|
*
|
||||||
* Returns a boolean value of `true` if a scheduled task is late and ends processing.
|
* Returns a boolean value of `true` if a scheduled task is late and ends processing.
|
||||||
*
|
*
|
||||||
* If the list of crons is an instance of WP_Error, return the instance instead of a boolean value.
|
* If the list of crons is an instance of WP_Error, returns the instance instead of a boolean value.
|
||||||
*
|
*
|
||||||
* @since 5.3.0
|
* @since 5.3.0
|
||||||
*
|
*
|
||||||
|
|
|
@ -34,7 +34,7 @@ final class WP_Block_Styles_Registry {
|
||||||
*
|
*
|
||||||
* @since 5.3.0
|
* @since 5.3.0
|
||||||
*
|
*
|
||||||
* @param string $block_name Block ty name including namespace.
|
* @param string $block_name Block type name including namespace.
|
||||||
* @param array $style_properties Array containing the properties of the style name, label,
|
* @param array $style_properties Array containing the properties of the style name, label,
|
||||||
* style (name of the stylesheet to be enqueued),
|
* style (name of the stylesheet to be enqueued),
|
||||||
* inline_style (string containing the CSS to be added).
|
* inline_style (string containing the CSS to be added).
|
||||||
|
|
|
@ -2146,7 +2146,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||||
* @since 4.6.0 Added support for `list-style-type`.
|
* @since 4.6.0 Added support for `list-style-type`.
|
||||||
* @since 5.0.0 Added support for `background-image`.
|
* @since 5.0.0 Added support for `background-image`.
|
||||||
* @since 5.1.0 Added support for `text-transform`.
|
* @since 5.1.0 Added support for `text-transform`.
|
||||||
* @since 5.2.0 Added support for `background-position` and `grid-template-columns`
|
* @since 5.2.0 Added support for `background-position` and `grid-template-columns`.
|
||||||
* @since 5.3.0 Added support for `grid`, `flex` and `column` layout properties.
|
* @since 5.3.0 Added support for `grid`, `flex` and `column` layout properties.
|
||||||
* Extend `background-*` support of individual properties.
|
* Extend `background-*` support of individual properties.
|
||||||
* @since 5.3.1 Added support for gradient backgrounds.
|
* @since 5.3.1 Added support for gradient backgrounds.
|
||||||
|
@ -2262,9 +2262,9 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||||
'cursor',
|
'cursor',
|
||||||
'direction',
|
'direction',
|
||||||
'float',
|
'float',
|
||||||
|
'list-style-type',
|
||||||
'overflow',
|
'overflow',
|
||||||
'vertical-align',
|
'vertical-align',
|
||||||
'list-style-type',
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1723,8 +1723,7 @@ function wp_img_tag_add_loading_attr( $image, $context ) {
|
||||||
$value = 'lazy';
|
$value = 'lazy';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Images should have dimension attributes for the `loading` attribute
|
// Images should have dimension attributes for the `loading` attribute to be added.
|
||||||
// to be added.
|
|
||||||
if ( false === strpos( $image, ' width=' ) || false === strpos( $image, ' height=' ) ) {
|
if ( false === strpos( $image, ' width=' ) || false === strpos( $image, ' height=' ) ) {
|
||||||
return $image;
|
return $image;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1297,12 +1297,12 @@ function rest_validate_value_from_schema( $value, $args, $param = '' ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $args['minItems'] ) && count( $value ) < $args['minItems'] ) {
|
if ( isset( $args['minItems'] ) && count( $value ) < $args['minItems'] ) {
|
||||||
/* translators: 1: Parameter, 2: number. */
|
/* translators: 1: Parameter, 2: Number. */
|
||||||
return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must contain at least %2$s items.' ), $param, number_format_i18n( $args['minItems'] ) ) );
|
return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must contain at least %2$s items.' ), $param, number_format_i18n( $args['minItems'] ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $args['maxItems'] ) && count( $value ) > $args['maxItems'] ) {
|
if ( isset( $args['maxItems'] ) && count( $value ) > $args['maxItems'] ) {
|
||||||
/* translators: 1: Parameter, 2: number. */
|
/* translators: 1: Parameter, 2: Number. */
|
||||||
return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must contain at most %2$s items.' ), $param, number_format_i18n( $args['maxItems'] ) ) );
|
return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must contain at most %2$s items.' ), $param, number_format_i18n( $args['maxItems'] ) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -605,7 +605,8 @@ class WP_REST_Server {
|
||||||
$embedded = array();
|
$embedded = array();
|
||||||
|
|
||||||
foreach ( $data['_links'] as $rel => $links ) {
|
foreach ( $data['_links'] as $rel => $links ) {
|
||||||
// If a list of relations was specified, and the link relation is not in the list of allowed relations, don't process the link.
|
// If a list of relations was specified, and the link relation
|
||||||
|
// is not in the list of allowed relations, don't process the link.
|
||||||
if ( is_array( $embed ) && ! in_array( $rel, $embed, true ) ) {
|
if ( is_array( $embed ) && ! in_array( $rel, $embed, true ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-alpha-48197';
|
$wp_version = '5.5-alpha-48198';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue