From 03f194d679d465ce83f459b8d59716465865faa4 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Thu, 29 Jun 2023 15:33:25 +0000 Subject: [PATCH] General: Add missing parentheses to functions referenced in `_deprecated_function()` calls added in 6.3. See #58235, #58301, #58555. Built from https://develop.svn.wordpress.org/trunk@56110 git-svn-id: http://core.svn.wordpress.org/trunk@55622 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/deprecated.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 05630d6f2f..3a22f77881 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -4645,7 +4645,7 @@ function wlwmanifest_link() { * @param WP_Comment[] $comments Array of comment objects. */ function wp_queue_comments_for_comment_meta_lazyload( $comments ) { - _deprecated_function( __FUNCTION__, '6.3.0', 'wp_lazyload_comment_meta' ); + _deprecated_function( __FUNCTION__, '6.3.0', 'wp_lazyload_comment_meta()' ); // Don't use `wp_list_pluck()` to avoid by-reference manipulation. $comment_ids = array(); if ( is_array( $comments ) ) { @@ -4685,7 +4685,7 @@ function wp_queue_comments_for_comment_meta_lazyload( $comments ) { * that the `loading` attribute should be skipped. */ function wp_get_loading_attr_default( $context ) { - _deprecated_function( __FUNCTION__, '6.3.0', 'wp_get_loading_optimization_attributes' ); + _deprecated_function( __FUNCTION__, '6.3.0', 'wp_get_loading_optimization_attributes()' ); global $wp_query; // Skip lazy-loading for the overall block template, as it is handled more granularly. @@ -4767,7 +4767,7 @@ function wp_get_loading_attr_default( $context ) { * @return string Converted `img` tag with `loading` attribute added. */ function wp_img_tag_add_loading_attr( $image, $context ) { - _deprecated_function( __FUNCTION__, '6.3.0', 'wp_img_tag_add_loading_optimization_attrs' ); + _deprecated_function( __FUNCTION__, '6.3.0', 'wp_img_tag_add_loading_optimization_attrs()' ); /* * Get loading attribute value to use. This must occur before the conditional check below so that even images that * are ineligible for being lazy-loaded are considered. @@ -5208,7 +5208,7 @@ function wp_get_duotone_filter_svg( $preset ) { * @param WP_Block_Type $block_type Block Type. */ function wp_register_duotone_support( $block_type ) { - _deprecated_function( __FUNCTION__, '6.3.0', 'WP_Duotone::register_duotone_support' ); + _deprecated_function( __FUNCTION__, '6.3.0', 'WP_Duotone::register_duotone_support()' ); return WP_Duotone::register_duotone_support( $block_type ); } @@ -5218,7 +5218,7 @@ function wp_register_duotone_support( $block_type ) { * @since 5.8.0 * @since 6.1.0 Allow unset for preset colors. * @deprecated 6.3.0 Use WP_Duotone::render_duotone_support() instead. - * + * * @access private * * @param string $block_content Rendered block content. @@ -5226,7 +5226,7 @@ function wp_register_duotone_support( $block_type ) { * @return string Filtered block content. */ function wp_render_duotone_support( $block_content, $block ) { - _deprecated_function( __FUNCTION__, '6.3.0', 'WP_Duotone::render_duotone_support' ); + _deprecated_function( __FUNCTION__, '6.3.0', 'WP_Duotone::render_duotone_support()' ); return WP_Duotone::render_duotone_support( $block_content, $block ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index f3bd4d342a..818edeac23 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta2-56109'; +$wp_version = '6.3-beta2-56110'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.