Make WordPress Core


Ignore:
Timestamp:
03/10/2016 11:35:37 PM (9 years ago)
Author:
ocean90
Message:

Media: Merge two error messages and use sprintf() for the method names.

See #33642.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-image-editor-imagick.php

    r36916 r36968  
    680680
    681681        if ( ! is_callable( array( $this->image, 'getImageProfiles' ) ) ) {
    682             return new WP_Error( 'image_strip_meta_error', __('Imagick::getImageProfiles() is required to strip image meta.') );
     682            /* translators: %s: ImageMagick method name */
     683            return new WP_Error( 'image_strip_meta_error', sprintf( __( '%s is required to strip image meta.' ), '<code>Imagick::getImageProfiles()</code>' ) );
    683684        }
    684685
    685686        if ( ! is_callable( array( $this->image, 'removeImageProfile' ) ) ) {
    686             return new WP_Error( 'image_strip_meta_error', __('Imagick::removeImageProfile() is required to strip image meta.') );
     687            /* translators: %s: ImageMagick method name */
     688            return new WP_Error( 'image_strip_meta_error', sprintf( __( '%s is required to strip image meta.' ), '<code>Imagick::removeImageProfile()</code>' ) );
    687689        }
    688690
Note: See TracChangeset for help on using the changeset viewer.