Skip to content

Commit 2d1c511

Browse files
committed
Administration: Update bulk edit validity checks & CSS.
Omitted to update the scripting validating bulk edit selections when changing the list table `th`. Add overlooked CSS to set post title `th` to `vertical-align: top`. Follow up to [62838]. Developed in WordPress#12666 Props joedolson, tobiasbg. Fixes #32892. git-svn-id: https://develop.svn.wordpress.org/trunk@62839 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 0029901 commit 2d1c511

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/js/_enqueues/admin/inline-edit-post.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ window.wp = window.wp || {};
191191
*/
192192
setBulk : function(){
193193
var te = '', type = this.type, c = true;
194-
var checkedPosts = $( 'tbody th.check-column input[type="checkbox"]:checked' );
194+
var checkedPosts = $( 'tbody .check-column input[type="checkbox"]:checked' );
195195
var categories = {};
196196
this.revert();
197197

@@ -207,7 +207,7 @@ window.wp = window.wp || {};
207207
*
208208
* Get the selected posts based on the checked checkboxes in the post table.
209209
*/
210-
$( 'tbody th.check-column input[type="checkbox"]' ).each( function() {
210+
$( 'tbody .check-column input[type="checkbox"]' ).each( function() {
211211

212212
// If the checkbox for a post is selected, add the post to the edit list.
213213
if ( $(this).prop('checked') ) {

src/wp-admin/css/common.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ code {
501501
border-bottom-width: 0;
502502
}
503503

504+
.widefat th,
504505
.widefat td {
505506
vertical-align: top;
506507
}

0 commit comments

Comments
 (0)