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. 


Built from https://develop.svn.wordpress.org/trunk@44722


git-svn-id: http://core.svn.wordpress.org/trunk@44553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Wilson 2019-02-01 02:14:51 +00:00
parent 60ddb6012e
commit f5cab6780f
7 changed files with 25 additions and 5 deletions

View File

@ -1789,6 +1789,11 @@ div.action-links,
display: block;
}
/* Comment author hidden via Screen Options */
.fixed .column-author.hidden ~ .column-comment .comment-author {
display: none;
}
#the-comment-list .is-expanded td {
box-shadow: none;
}
@ -2009,6 +2014,11 @@ div.action-links,
padding: 10px 9px; /* reset from other list tables that have a label at this width */
}
/* Plugin description hidden via Screen Options */
#wpbody-content .wp-list-table.plugins .desc.hidden {
display: none;
}
#wpbody-content .wp-list-table.plugins .column-description {
padding-top: 2px;
}

File diff suppressed because one or more lines are too long

View File

@ -1789,6 +1789,11 @@ div.action-links,
display: block;
}
/* Comment author hidden via Screen Options */
.fixed .column-author.hidden ~ .column-comment .comment-author {
display: none;
}
#the-comment-list .is-expanded td {
box-shadow: none;
}
@ -2009,6 +2014,11 @@ div.action-links,
padding: 10px 9px; /* reset from other list tables that have a label at this width */
}
/* Plugin description hidden via Screen Options */
#wpbody-content .wp-list-table.plugins .desc.hidden {
display: none;
}
#wpbody-content .wp-list-table.plugins .column-description {
padding-top: 2px;
}

File diff suppressed because one or more lines are too long

View File

@ -110,7 +110,7 @@ window.columns = {
* @returns {string} The hidden column names separated by a comma.
*/
hidden : function() {
return $( '.manage-column[id]' ).filter( ':hidden' ).map(function() {
return $( '.manage-column[id]' ).filter( '.hidden' ).map(function() {
return this.id;
}).get().join( ',' );
},

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-beta3-44721';
$wp_version = '5.1-beta3-44722';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.