mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Media Grid: Remove fields from showing in the grid itself.
All details are still available within the modal, and less-distinguishable non-image files still show the filename along with the file type icon. Reverts [29079], [29078], [29077], and [28995]. see #24716. git-svn-id: https://develop.svn.wordpress.org/trunk@29280 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1019,12 +1019,7 @@ final class WP_Screen {
|
||||
?>
|
||||
<div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="<?php esc_attr_e('Screen Options Tab'); ?>">
|
||||
<form id="adv-settings" action="" method="post">
|
||||
<?php if (
|
||||
isset( $wp_meta_boxes[ $this->id ] )
|
||||
|| $this->get_option( 'per_page' )
|
||||
|| $this->get_option( 'misc_screen_options' )
|
||||
|| ( $columns && empty( $columns['_title'] ) )
|
||||
) : ?>
|
||||
<?php if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?>
|
||||
<h5><?php _e( 'Show on screen' ); ?></h5>
|
||||
<?php
|
||||
endif;
|
||||
@@ -1076,28 +1071,6 @@ final class WP_Screen {
|
||||
?>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
<?php elseif ( $this->get_option( 'misc_screen_options' ) ):
|
||||
$misc_options = $this->get_option( 'misc_screen_options' );
|
||||
?>
|
||||
<div class="metabox-prefs misc-screen-options" data-id="<?php echo esc_attr( $misc_options['id'] ) ?>">
|
||||
<?php
|
||||
|
||||
$option = get_user_option( $misc_options['option'] );
|
||||
$hidden = array();
|
||||
if ( ! empty( $option ) ) {
|
||||
$hidden = $option;
|
||||
}
|
||||
foreach ( $this->_options as $column => $args ) {
|
||||
if ( 'misc_screen_options' === $column ) {
|
||||
continue;
|
||||
}
|
||||
$id = "$column-hide";
|
||||
echo '<label for="' . $id . '">';
|
||||
echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '"' . checked( ! in_array( $column, $hidden ), true, false ) . ' />';
|
||||
echo $args['label'] . "</label>\n";
|
||||
} ?>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
<?php endif;
|
||||
|
||||
$this->render_screen_layout();
|
||||
|
||||
Reference in New Issue
Block a user