Ticket #31029: 31029.patch
File 31029.patch, 897 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/media-template.php
736 736 <span><?php _e('Columns'); ?></span> 737 737 <select class="columns" name="columns" 738 738 data-setting="columns"> 739 <?php for ( $i = 1; $i <= 9; $i++ ) : ?>739 <?php for ( $i = intval( apply_filters( 'media_gallery_columns_min', 1 ) ); $i <= intval( apply_filters( 'media_gallery_columns_max', 9 ) ); $i++ ) : ?> 740 740 <option value="<?php echo esc_attr( $i ); ?>" <# 741 741 if ( <?php echo $i ?> == wp.media.galleryDefaults.columns ) { #>selected="selected"<# } 742 742 #>> 743 <?php echo esc_html( $i); ?>743 <?php echo esc_html( apply_filters( 'media_gallery_columns_name', $i ) ); ?> 744 744 </option> 745 745 <?php endfor; ?> 746 746 </select>