From 4497ddfcb2f066e8745122ff219b871c30b45797 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Thu, 10 Mar 2016 23:36:26 +0000 Subject: [PATCH] Media: Merge two error messages and use `sprintf()` for the method names. See #33642. Built from https://develop.svn.wordpress.org/trunk@36968 git-svn-id: http://core.svn.wordpress.org/trunk@36936 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-image-editor-imagick.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-image-editor-imagick.php b/wp-includes/class-wp-image-editor-imagick.php index c769df216e..45a064346a 100644 --- a/wp-includes/class-wp-image-editor-imagick.php +++ b/wp-includes/class-wp-image-editor-imagick.php @@ -679,11 +679,13 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { protected function strip_meta() { if ( ! is_callable( array( $this->image, 'getImageProfiles' ) ) ) { - return new WP_Error( 'image_strip_meta_error', __('Imagick::getImageProfiles() is required to strip image meta.') ); + /* translators: %s: ImageMagick method name */ + return new WP_Error( 'image_strip_meta_error', sprintf( __( '%s is required to strip image meta.' ), 'Imagick::getImageProfiles()' ) ); } if ( ! is_callable( array( $this->image, 'removeImageProfile' ) ) ) { - return new WP_Error( 'image_strip_meta_error', __('Imagick::removeImageProfile() is required to strip image meta.') ); + /* translators: %s: ImageMagick method name */ + return new WP_Error( 'image_strip_meta_error', sprintf( __( '%s is required to strip image meta.' ), 'Imagick::removeImageProfile()' ) ); } /* diff --git a/wp-includes/version.php b/wp-includes/version.php index 326549eb90..5cc459f39e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-beta3-36967'; +$wp_version = '4.5-beta3-36968'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.