Make WordPress Core


Ignore:
Timestamp:
04/06/2022 03:18:08 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Adjust some deprecated function DocBlocks per the documentation standards.

This ensures the replacement functions are linked correctly in the WordPress Code Reference.

Follow-up to [38515], [43548], [49992], [51348], [51586], [52757], [53082].

See #54729.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r53082 r53086  
    41834183 * @deprecated 5.7.0 Use wp_robots_sensitive_page() instead on 'wp_robots' filter
    41844184 *                   and wp_strict_cross_origin_referrer() on 'wp_head' action.
     4185 *
     4186 * @see wp_robots_sensitive_page()
    41854187 */
    41864188function wp_sensitive_page_meta() {
     
    41974199 *
    41984200 * @since 5.2.0
    4199  * @deprecated 5.8.0
    4200  *
    42014201 * @access private
     4202 * @deprecated 5.8.0 Use _excerpt_render_inner_blocks() introduced in 5.8.0.
     4203 *
     4204 * @see _excerpt_render_inner_blocks()
    42024205 *
    42034206 * @param array $columns        The parsed columns block.
     
    42074210function _excerpt_render_inner_columns_blocks( $columns, $allowed_blocks ) {
    42084211    _deprecated_function( __FUNCTION__, '5.8.0', '_excerpt_render_inner_blocks()' );
     4212
    42094213    return _excerpt_render_inner_blocks( $columns, $allowed_blocks );
    42104214}
     
    42154219 *
    42164220 * @since 5.9.0
    4217  * @deprecated 5.9.1 Use `wp_get_duotone_filter_property` introduced in 5.9.1.
     4221 * @deprecated 5.9.1 Use wp_get_duotone_filter_property() introduced in 5.9.1.
    42184222 *
    42194223 * @see wp_get_duotone_filter_property()
     
    42244228function wp_render_duotone_filter_preset( $preset ) {
    42254229    _deprecated_function( __FUNCTION__, '5.9.1', 'wp_get_duotone_filter_property()' );
     4230
    42264231    return wp_get_duotone_filter_property( $preset );
    42274232}
    42284233
    42294234/**
    4230  * Checks whether serialization of the current block's border properties should
    4231  * occur.
     4235 * Checks whether serialization of the current block's border properties should occur.
    42324236 *
    42334237 * @since 5.8.0
    42344238 * @access private
    4235  * @deprecated 6.0.0 Use `wp_should_skip_block_supports_serialization` introduced in 6.0.0.
     4239 * @deprecated 6.0.0 Use wp_should_skip_block_supports_serialization() introduced in 6.0.0.
     4240 *
     4241 * @see wp_should_skip_block_supports_serialization()
    42364242 *
    42374243 * @param WP_Block_Type $block_type Block type.
     
    42414247function wp_skip_border_serialization( $block_type ) {
    42424248    _deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' );
     4249
    42434250    $border_support = _wp_array_get( $block_type->supports, array( '__experimentalBorder' ), false );
    42444251
     
    42494256
    42504257/**
    4251  * Checks whether serialization of the current block's dimensions properties
    4252  * should occur.
     4258 * Checks whether serialization of the current block's dimensions properties should occur.
    42534259 *
    42544260 * @since 5.9.0
    42554261 * @access private
    4256  * @deprecated 6.0.0 Use `wp_should_skip_block_supports_serialization` introduced in 6.0.0.
     4262 * @deprecated 6.0.0 Use wp_should_skip_block_supports_serialization() introduced in 6.0.0.
     4263 *
     4264 * @see wp_should_skip_block_supports_serialization()
    42574265 *
    42584266 * @param WP_Block_type $block_type Block type.
     
    42614269function wp_skip_dimensions_serialization( $block_type ) {
    42624270    _deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' );
     4271
    42634272    $dimensions_support = _wp_array_get( $block_type->supports, array( '__experimentalDimensions' ), false );
     4273
    42644274    return is_array( $dimensions_support ) &&
    42654275        array_key_exists( '__experimentalSkipSerialization', $dimensions_support ) &&
     
    42684278
    42694279/**
    4270  * Checks whether serialization of the current block's spacing properties should
    4271  * occur.
     4280 * Checks whether serialization of the current block's spacing properties should occur.
    42724281 *
    42734282 * @since 5.9.0
    42744283 * @access private
    4275  * @deprecated 6.0.0 Use `wp_should_skip_block_supports_serialization` introduced in 6.0.0.
     4284 * @deprecated 6.0.0 Use wp_should_skip_block_supports_serialization() introduced in 6.0.0.
     4285 *
     4286 * @see wp_should_skip_block_supports_serialization()
    42764287 *
    42774288 * @param WP_Block_Type $block_type Block type.
     
    42804291function wp_skip_spacing_serialization( $block_type ) {
    42814292    _deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' );
     4293
    42824294    $spacing_support = _wp_array_get( $block_type->supports, array( 'spacing' ), false );
    42834295
Note: See TracChangeset for help on using the changeset viewer.