I18N: Add translator comments for strings in `wp-includes/deprecated.php`.
Props ramiy. Fixes #37797. Built from https://develop.svn.wordpress.org/trunk@38343 git-svn-id: http://core.svn.wordpress.org/trunk@38284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eb9cc0c13e
commit
51e1539ab7
|
@ -3169,8 +3169,10 @@ function wp_load_image( $file ) {
|
||||||
if ( is_numeric( $file ) )
|
if ( is_numeric( $file ) )
|
||||||
$file = get_attached_file( $file );
|
$file = get_attached_file( $file );
|
||||||
|
|
||||||
if ( ! is_file( $file ) )
|
if ( ! is_file( $file ) ) {
|
||||||
return sprintf(__('File “%s” doesn’t exist?'), $file);
|
/* translators: %s: file name */
|
||||||
|
return sprintf( __( 'File “%s” doesn’t exist?' ), $file );
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! function_exists('imagecreatefromstring') )
|
if ( ! function_exists('imagecreatefromstring') )
|
||||||
return __('The GD image library is not installed.');
|
return __('The GD image library is not installed.');
|
||||||
|
@ -3180,8 +3182,10 @@ function wp_load_image( $file ) {
|
||||||
|
|
||||||
$image = imagecreatefromstring( file_get_contents( $file ) );
|
$image = imagecreatefromstring( file_get_contents( $file ) );
|
||||||
|
|
||||||
if ( !is_resource( $image ) )
|
if ( ! is_resource( $image ) ) {
|
||||||
return sprintf(__('File “%s” is not an image.'), $file);
|
/* translators: %s: file name */
|
||||||
|
return sprintf( __( 'File “%s” is not an image.' ), $file );
|
||||||
|
}
|
||||||
|
|
||||||
return $image;
|
return $image;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-alpha-38342';
|
$wp_version = '4.7-alpha-38343';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue