Ticket #24553: 24553.patch
File 24553.patch, 2.7 KB (added by , 11 years ago) |
---|
-
wp-admin/css/wp-admin.css
2538 2538 width: 16px; 2539 2539 } 2540 2540 2541 tr .locked-info, 2541 2542 tr.wp-locked .check-column label, 2542 2543 tr.wp-locked .check-column input[type="checkbox"], 2543 2544 tr.wp-locked .row-actions .inline, … … 2545 2546 display: none; 2546 2547 } 2547 2548 2549 tr.wp-locked .locked-info { 2550 display: inline-block; 2551 } 2552 2548 2553 .fixed .column-comments .sorting-indicator { 2549 2554 margin-top: 3px; 2550 2555 } -
wp-admin/includes/class-wp-posts-list-table.php
574 574 $locked_avatar = $locked_text = ''; 575 575 } 576 576 577 echo '<span class="locked- avatar">' . $locked_avatar . '</span> <span class="locked-text">' . $locked_text . "</span>\n";577 echo '<span class="locked-info"><span class="locked-avatar">' . $locked_avatar . '</span> <span class="locked-text">' . $locked_text . "</span></span>\n"; 578 578 } 579 579 580 580 if ( ! $this->hierarchical_display && 'excerpt' == $mode && current_user_can( 'read_post', $post->ID ) ) -
wp-admin/js/inline-edit-post.js
302 302 if ( locked.hasOwnProperty( key ) ) { 303 303 if ( ! row.hasClass('wp-locked') ) { 304 304 lock_data = locked[key]; 305 row. addClass('wp-locked').find('.column-title .locked-text').text( lock_data.text );305 row.find('.column-title .locked-text').text( lock_data.text ); 306 306 row.find('.check-column checkbox').prop('checked', false); 307 307 308 308 if ( lock_data.avatar_src ) { 309 309 avatar = $('<img class="avatar avatar-18 photo" width="18" height="18" />').attr( 'src', lock_data.avatar_src.replace(/&/g, '&') ); 310 310 row.find('.column-title .locked-avatar').empty().append( avatar ); 311 311 } 312 row.find('.column-title .locked-info').slideDown(1500,function(){ 313 row.addClass('wp-locked'); 314 }); 312 315 } 313 316 } else if ( row.hasClass('wp-locked') ) { 314 row.removeClass('wp-locked').find('.column-title .locked-text').empty(); 315 row.find('.column-title .locked-avatar').empty(); 317 row.find('.column-title .locked-info').slideUp(1500,function(){ 318 row.removeClass('wp-locked'); 319 row.find('.column-title .locked-text').empty(); 320 row.find('.column-title .locked-avatar').empty(); 321 }); 316 322 } 317 323 }); 318 324 }).on( 'heartbeat-send.wp-check-locked-posts', function( e, data ) {