WordPress.org

Make WordPress Core

Changeset 44722


Ignore:
Timestamp:
02/01/2019 02:13:02 AM (8 months ago)
Author:
peterwilsoncc
Message:

Administration: Save column visibility on small screens.

Modifies the jQuery selector for determining hidden columns to ensure they are detected when the expanded columns details are closed.

Adds high-specificity selectors specifically for setting screen options in the comments and plugins lists.

Props afercia.
Fixes #46005.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/common.js

    r43577 r44722  
    111111     */
    112112    hidden : function() {
    113         return $( '.manage-column[id]' ).filter( ':hidden' ).map(function() {
     113        return $( '.manage-column[id]' ).filter( '.hidden' ).map(function() {
    114114            return this.id;
    115115        }).get().join( ',' );
  • trunk/src/wp-admin/css/list-tables.css

    r44717 r44722  
    17901790    }
    17911791
     1792    /* Comment author hidden via Screen Options */
     1793    .fixed .column-author.hidden ~ .column-comment .comment-author {
     1794        display: none;
     1795    }
     1796
    17921797    #the-comment-list .is-expanded td {
    17931798        box-shadow: none;
     
    20102015    }
    20112016
     2017    /* Plugin description hidden via Screen Options */
     2018    #wpbody-content .wp-list-table.plugins .desc.hidden {
     2019        display: none;
     2020    }
     2021
    20122022    #wpbody-content .wp-list-table.plugins .column-description {
    20132023        padding-top: 2px;
Note: See TracChangeset for help on using the changeset viewer.