Ticket #38932: 38932.3.patch
File 38932.3.patch, 2.7 KB (added by , 8 years ago) |
---|
-
src/wp-includes/js/media-views.js
4018 4018 4019 4019 if ( this.options.suggestedWidth && this.options.suggestedHeight ) { 4020 4020 this.toolbar.set( 'suggestedDimensions', new View({ 4021 el: $( '<div class="instructions">' + l10n.suggestedDimensions + ' ' + this.options.suggestedWidth + ' × ' + this.options.suggestedHeight+ '</div>' )[0],4021 el: $( '<div class="instructions">' + l10n.suggestedDimensions.replace( '%1$s', this.options.suggestedWidth ).replace( '%2$s', this.options.suggestedHeight ) + '</div>' )[0], 4022 4022 priority: -40 4023 4023 }) ); 4024 4024 } -
src/wp-includes/js/media/views/attachments/browser.js
287 287 288 288 if ( this.options.suggestedWidth && this.options.suggestedHeight ) { 289 289 this.toolbar.set( 'suggestedDimensions', new View({ 290 el: $( '<div class="instructions">' + l10n.suggestedDimensions + ' ' + this.options.suggestedWidth + ' × ' + this.options.suggestedHeight+ '</div>' )[0],290 el: $( '<div class="instructions">' + l10n.suggestedDimensions.replace( '%1$s', this.options.suggestedWidth ).replace( '%2$s', this.options.suggestedHeight ) + '</div>' )[0], 291 291 priority: -40 292 292 }) ); 293 293 } -
src/wp-includes/media-template.php
235 235 236 236 <# if ( data.suggestedWidth && data.suggestedHeight ) { #> 237 237 <p class="suggested-dimensions"> 238 <?php _e( 'Suggested image dimensions:' ); ?> {{data.suggestedWidth}} × {{data.suggestedHeight}}238 <?php printf( __( 'Suggested image dimensions: %1$s by %2$s pixels' ), "{{data.suggestedWidth}}", "{{data.suggestedHeight}}" ); ?> 239 239 </p> 240 240 <# } #> 241 241 -
src/wp-includes/media.php
3483 3483 'cropImage' => __( 'Crop Image' ), 3484 3484 'cropYourImage' => __( 'Crop your image' ), 3485 3485 'cropping' => __( 'Cropping…' ), 3486 'suggestedDimensions' => __( 'Suggested image dimensions: ' ),3486 'suggestedDimensions' => __( 'Suggested image dimensions: %1$s by %2$s pixels' ), 3487 3487 'cropError' => __( 'There has been an error cropping your image.' ), 3488 3488 3489 3489 // Edit Audio