Changeset 36145
- Timestamp:
- 01/02/2016 03:33:15 AM (9 years ago)
- Location:
- branches/4.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
-
branches/4.4/src/wp-admin/includes/class-wp-screen.php
r36104 r36145 999 999 * 1000 1000 * @since 4.4.0 1001 * 1001 * 1002 1002 * @param bool $show_button Whether to show Screen Options submit button. 1003 1003 * Default false. … … 1088 1088 $id = "$column-hide"; 1089 1089 echo '<label>'; 1090 echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" value="' . $column . '"' . checked( ! in_array( $column, $hidden ), true, false ) . ' />';1090 echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '"' . checked( ! in_array( $column, $hidden ), true, false ) . ' />'; 1091 1091 echo "$title</label>\n"; 1092 1092 } -
branches/4.4/src/wp-admin/js/postbox.js
r34977 r36145 51 51 this.init( page, args ); 52 52 53 $handles.on( 'click.postboxes', 53 $handles.on( 'click.postboxes', this.handle_click ); 54 54 55 55 $('.postbox .hndle a').click( function(e) { … … 145 145 146 146 save_state : function(page) { 147 var closed = $('.postbox').filter('.closed').map(function() { return this.id; }).get().join(','), 148 hidden = $('.postbox').filter(':hidden').map(function() { return this.id; }).get().join(','); 147 var closed, hidden; 148 149 // Return on the nav-menus.php screen, see #35112. 150 if ( 'nav-menus' === page ) { 151 return; 152 } 153 154 closed = $( '.postbox' ).filter( '.closed' ).map( function() { return this.id; } ).get().join( ',' ); 155 hidden = $( '.postbox' ).filter( ':hidden' ).map( function() { return this.id; } ).get().join( ',' ); 149 156 150 157 $.post(ajaxurl, {
Note: See TracChangeset
for help on using the changeset viewer.