mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Header Images: Add suggested dimensions to the media workflow.
props ehg, gcorne. see #21785. git-svn-id: https://develop.svn.wordpress.org/trunk@28030 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -205,6 +205,12 @@ function wp_print_media_templates() {
|
||||
printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($byte_sizes[$u]) );
|
||||
?></p>
|
||||
|
||||
<# if ( data.suggestedWidth && data.suggestedHeight ) { #>
|
||||
<p class="suggested-dimensions">
|
||||
<?php _e( 'Suggested image dimensions:' ); ?> {{{data.suggestedWidth}}} × {{{data.suggestedHeight}}}
|
||||
</p>
|
||||
<# } #>
|
||||
|
||||
<?php
|
||||
/** This action is documented in wp-admin/includes/media.php */
|
||||
do_action( 'post-upload-ui' ); ?>
|
||||
|
||||
Reference in New Issue
Block a user