I18N: Move code out of a translatable string in register_theme_feature()
.
Props ramiy. Fixes #50758. git-svn-id: https://develop.svn.wordpress.org/trunk@48611 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5edc4e9cbc
commit
34872f1a94
@ -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'] ) ) {
|
if ( isset( $args['show_in_rest']['prepare_callback'] ) && ! is_callable( $args['show_in_rest']['prepare_callback'] ) ) {
|
||||||
return new WP_Error(
|
return new WP_Error(
|
||||||
'invalid_rest_prepare_callback',
|
'invalid_rest_prepare_callback',
|
||||||
__( 'The prepare_callback must be a callable function.' )
|
sprintf(
|
||||||
|
/* translators: %s: prepare_callback */
|
||||||
|
__( 'The %s must be a callable function.' ),
|
||||||
|
'<code>prepare_callback<code>'
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user