Changeset 35161
- Timestamp:
- 10/14/2015 06:57:16 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/common.css
r35158 r35161 1628 1628 .screen-options + .screen-options { 1629 1629 margin-top: 10px; 1630 } 1631 1632 .metabox-prefs .submit { 1633 margin-top: 1em; 1634 padding: 0; 1630 1635 } 1631 1636 -
trunk/src/wp-admin/includes/class-wp-screen.php
r35010 r35161 994 994 echo $this->_screen_settings; 995 995 996 /** 997 * Filter whether to show the Screen Options submit button. 998 * 999 * @since 4.4.0 1000 * 1001 * @param bool $show_button Whether to show Screen Options submit button. 1002 * Default false. 1003 * @param WP_Screen $this Current WP_Screen instance. 1004 */ 1005 $show_button = apply_filters( 'screen_options_show_submit', false, $this ); 1006 1007 if ( $show_button ) { 1008 submit_button( __( 'Apply' ), 'primary', 'screen-options-apply', true ); 1009 } 1010 996 1011 echo $form_end . $wrapper_end; 997 1012 } … … 1156 1171 } 1157 1172 1173 // This needs a submit button 1174 add_filter( 'screen_options_show_submit', '__return_true' ); 1175 1158 1176 ?> 1159 1177 <fieldset class="screen-options"> … … 1164 1182 id="<?php echo esc_attr( $option ); ?>" maxlength="3" 1165 1183 value="<?php echo esc_attr( $per_page ); ?>" /> 1166 <?php endif; 1167 1168 echo get_submit_button( __( 'Apply' ), 'button', 'screen-options-apply', false ); ?> 1169 <input type="hidden" name="wp_screen_options[option]" value="<?php echo esc_attr( $option ); ?>" /> 1184 <?php endif; ?> 1185 <input type="hidden" name="wp_screen_options[option]" value="<?php echo esc_attr( $option ); ?>" /> 1170 1186 </fieldset> 1171 1187 <?php
Note: See TracChangeset
for help on using the changeset viewer.