Ticket #31029: 31029.1.patch
File 31029.1.patch, 1.3 KB (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 740 /** 741 * Allows change of min number of columns dropdown in Media Gallery 742 * 743 * @since 4.3 744 * 745 * @param int $min Default columns_min of 1 746 */ 747 $min_columns = apply_filters( 'media_gallery_columns_min', 1 ); 748 /** 749 * Allows change of max number of columns dropdown in Media Gallery 750 * 751 * @since 4.3 752 * 753 * @param int $max Default columns_max of 9 754 */ 755 $max_columns = apply_filters( 'media_gallery_columns_max', 9 ); 756 757 for ( $i = intval( $min_columns ); $i <= intval( $max_columns ); $i++ ) : ?> 740 758 <option value="<?php echo esc_attr( $i ); ?>" <# 741 759 if ( <?php echo $i ?> == wp.media.galleryDefaults.columns ) { #>selected="selected"<# } 742 760 #>> 743 <?php echo esc_html( $i); ?>761 <?php echo esc_html( apply_filters( 'media_gallery_columns_name', $i ) ); ?> 744 762 </option> 745 763 <?php endfor; ?> 746 764 </select>