Changeset 35161 for trunk/src/wp-admin/includes/class-wp-screen.php
- Timestamp:
- 10/14/2015 06:57:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.