WordPress.org

Make WordPress Core

Changeset 48198


Ignore:
Timestamp:
06/28/2020 11:51:29 AM (17 months ago)
Author:
SergeyBiryukov
Message:

Docs: Miscellaneous DocBlock corrections.

See #49572.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r48168 r48198  
    21552155     * Returns a boolean value of `true` if a scheduled task has been missed and ends processing.
    21562156     *
    2157      * If the list of crons is an instance of WP_Error, return the instance instead of a boolean value.
     2157     * If the list of crons is an instance of WP_Error, returns the instance instead of a boolean value.
    21582158     *
    21592159     * @since 5.2.0
     
    21812181     * Returns a boolean value of `true` if a scheduled task is late and ends processing.
    21822182     *
    2183      * If the list of crons is an instance of WP_Error, return the instance instead of a boolean value.
     2183     * If the list of crons is an instance of WP_Error, returns the instance instead of a boolean value.
    21842184     *
    21852185     * @since 5.3.0
  • trunk/src/wp-includes/class-wp-block-styles-registry.php

    r48173 r48198  
    3535     * @since 5.3.0
    3636     *
    37      * @param string $block_name       Block ty name including namespace.
     37     * @param string $block_name       Block type name including namespace.
    3838     * @param array  $style_properties Array containing the properties of the style name, label,
    3939     *                                 style (name of the stylesheet to be enqueued),
  • trunk/src/wp-includes/kses.php

    r48139 r48198  
    21472147     * @since 5.0.0 Added support for `background-image`.
    21482148     * @since 5.1.0 Added support for `text-transform`.
    2149      * @since 5.2.0 Added support for `background-position` and `grid-template-columns`
     2149     * @since 5.2.0 Added support for `background-position` and `grid-template-columns`.
    21502150     * @since 5.3.0 Added support for `grid`, `flex` and `column` layout properties.
    21512151     *              Extend `background-*` support of individual properties.
     
    22632263            'direction',
    22642264            'float',
     2265            'list-style-type',
    22652266            'overflow',
    22662267            'vertical-align',
    2267             'list-style-type',
    22682268        )
    22692269    );
  • trunk/src/wp-includes/media.php

    r48185 r48198  
    17241724        }
    17251725
    1726         // Images should have dimension attributes for the `loading` attribute
    1727         // to be added.
     1726        // Images should have dimension attributes for the `loading` attribute to be added.
    17281727        if ( false === strpos( $image, ' width=' ) || false === strpos( $image, ' height=' ) ) {
    17291728            return $image;
  • trunk/src/wp-includes/rest-api.php

    r48173 r48198  
    12981298
    12991299        if ( isset( $args['minItems'] ) && count( $value ) < $args['minItems'] ) {
    1300             /* translators: 1: Parameter, 2: number. */
     1300            /* translators: 1: Parameter, 2: Number. */
    13011301            return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must contain at least %2$s items.' ), $param, number_format_i18n( $args['minItems'] ) ) );
    13021302        }
    13031303
    13041304        if ( isset( $args['maxItems'] ) && count( $value ) > $args['maxItems'] ) {
    1305             /* translators: 1: Parameter, 2: number. */
     1305            /* translators: 1: Parameter, 2: Number. */
    13061306            return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must contain at most %2$s items.' ), $param, number_format_i18n( $args['maxItems'] ) ) );
    13071307        }
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r48121 r48198  
    606606
    607607        foreach ( $data['_links'] as $rel => $links ) {
    608             // If a list of relations was specified, and the link relation is not in the list of allowed relations, don't process the link.
     608            // If a list of relations was specified, and the link relation
     609            // is not in the list of allowed relations, don't process the link.
    609610            if ( is_array( $embed ) && ! in_array( $rel, $embed, true ) ) {
    610611                continue;
Note: See TracChangeset for help on using the changeset viewer.