diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 69ec79d3e0..df297a5634 100644 --- a/src/wp-includes/theme.php +++ b/src/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' + ) ); }