From ac0b77f33cd90cb448ef9bcfedad6b77a437d6fd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 25 Jul 2020 16:31:05 +0000 Subject: [PATCH] I18N: Move code out of a translatable string in `register_theme_feature()`. Props ramiy. Fixes #50758. Built from https://develop.svn.wordpress.org/trunk@48611 git-svn-id: http://core.svn.wordpress.org/trunk@48373 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 6 +++++- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 69ec79d3e0..df297a5634 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -3122,7 +3122,11 @@ function register_theme_feature( $feature, $args = array() ) { if ( isset( $args['show_in_rest']['prepare_callback'] ) && ! is_callable( $args['show_in_rest']['prepare_callback'] ) ) { return new WP_Error( 'invalid_rest_prepare_callback', - __( 'The prepare_callback must be a callable function.' ) + sprintf( + /* translators: %s: prepare_callback */ + __( 'The %s must be a callable function.' ), + 'prepare_callback' + ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 47ee3ac15c..4dee5617bc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta3-48610'; +$wp_version = '5.5-beta3-48611'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.