diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
index 2895932525..5773a4365c 100644
--- a/src/wp-admin/css/common.css
+++ b/src/wp-admin/css/common.css
@@ -1333,7 +1333,6 @@ form.upgrade .hint {
display: none;
margin: 0 20px -1px 0px;
position: relative;
- z-index: 10;
background-color: #fff;
border: 1px solid #ddd;
border-top: none;
@@ -1356,7 +1355,6 @@ form.upgrade .hint {
#screen-meta-links .screen-meta-toggle {
position: relative;
top: 0;
- z-index: 10;
}
#screen-meta-links a {
diff --git a/src/wp-admin/includes/screen.php b/src/wp-admin/includes/screen.php
index 5b8e2f7112..ad7140f28e 100644
--- a/src/wp-admin/includes/screen.php
+++ b/src/wp-admin/includes/screen.php
@@ -1019,12 +1019,7 @@ final class WP_Screen {
?>
- get_option( 'misc_screen_options' ) ):
- $misc_options = $this->get_option( 'misc_screen_options' );
- ?>
-
- _options as $column => $args ) {
- if ( 'misc_screen_options' === $column ) {
- continue;
- }
- $id = "$column-hide";
- echo '\n";
- } ?>
-
-
render_screen_layout();
diff --git a/src/wp-admin/js/common.js b/src/wp-admin/js/common.js
index d0e9fb578c..0ee8811f50 100644
--- a/src/wp-admin/js/common.js
+++ b/src/wp-admin/js/common.js
@@ -27,31 +27,12 @@ columns = {
},
saveManageColumnsState : function() {
- var hidden, page, opts = $( '.misc-screen-options' );
- if ( opts.length ) {
- hidden = [];
- opts.find( '.hide-column-tog' ).each( function() {
- var $el, field = this.value;
- $el = $( '.data-' + field );
- if ( ! this.checked ) {
- hidden.push( field );
- $el.removeClass( 'data-visible' ).addClass( 'data-hidden' );
- } else {
- $el.removeClass( 'data-hidden' ).addClass( 'data-visible' );
- }
- } );
- page = pagenow + opts.data( 'id' );
- hidden = hidden.join( ',' );
- } else {
- page = pagenow;
- hidden = this.hidden();
- }
-
+ var hidden = this.hidden();
$.post(ajaxurl, {
action: 'hidden-columns',
hidden: hidden,
screenoptionnonce: $('#screenoptionnonce').val(),
- page: page
+ page: pagenow
});
},
diff --git a/src/wp-admin/upload.php b/src/wp-admin/upload.php
index b946a0bf39..2e1e1afedb 100644
--- a/src/wp-admin/upload.php
+++ b/src/wp-admin/upload.php
@@ -28,12 +28,6 @@ if ( 'grid' === $mode ) {
'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ),
) );
- add_screen_option( 'misc_screen_options', array( 'option' => 'manageuploadgridcolumnshidden', 'id' => 'grid' ) );
- add_screen_option( 'title', array( 'label' => __( 'Name' ) ) );
- add_screen_option( 'uploadedTo', array( 'label' => __( 'Uploaded To' ) ) );
- add_screen_option( 'dateFormatted', array( 'label' => __( 'Date' ) ) );
- add_screen_option( 'mime', array( 'label' => __( 'Mime-type' ) ) );
-
get_current_screen()->add_help_tab( array(
'id' => 'overview',
'title' => __( 'Overview' ),
diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css
index 835a807857..45919097a5 100644
--- a/src/wp-includes/css/media-views.css
+++ b/src/wp-includes/css/media-views.css
@@ -961,29 +961,6 @@
border-radius: 0;
}
-.attachment .data-fields {
- margin: 5px 0 0;
-}
-
-.attachment .data-field {
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- line-height: 19px;
- height: 19px;
- text-align: left;
- width: 90%;
- margin: 0 5%;
-}
-
-.attachment .data-hidden {
- display: none;
-}
-
-.attachment .data-visible {
- display: block;
-}
-
/**
* Attachments Browser
*/
diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index edea01273b..c679cc011b 100644
--- a/src/wp-includes/media-template.php
+++ b/src/wp-includes/media-template.php
@@ -443,37 +443,7 @@ function wp_print_media_templates() {
placeholder=""
<# } #> {{ maybeReadOnly }} />
<# }
- }
-
- if ( _.contains( data.controller.options.mode, 'grid' ) ) { #>
-
-
-
<#
- if ( 'uploadedTo' === '' ) {
- if ( data[ '' ] ) {
- #>
{{ data.uploadedToTitle }}<#
- } else {
- #><#
- }
- } else if ( 'title' === '' && ! data[ '' ] ) {
- #><#
- } else if ( data[ '' ] ) {
- #>{{ data[ '' ] }}<#
- }
- #>
-
-
- <# } #>
-
+ } #>