Ticket #35447: 35447.patch
File 35447.patch, 1.1 KB (added by , 9 years ago) |
---|
-
src/wp-admin/widgets.php
406 406 if ( !empty( $registered_sidebar['class'] ) ) 407 407 $wrap_class .= ' ' . $registered_sidebar['class']; 408 408 409 $is_inactive_widgets = 'wp_inactive_widgets' == $registered_sidebar['id']; 409 410 ?> 410 411 <div class="<?php echo esc_attr( $wrap_class ); ?>"> 411 412 <div class="widget-holder inactive"> 412 413 <?php wp_list_widget_controls( $registered_sidebar['id'], $registered_sidebar['name'] ); ?> 414 415 <?php if ( $is_inactive_widgets ) { ?> 413 416 <div class="remove-inactive-widgets"> 414 417 <form action="" method="post"> 415 418 <p> … … 427 430 <?php wp_nonce_field( 'remove-inactive-widgets', '_wpnonce_remove_inactive_widgets' ); ?> 428 431 </form> 429 432 </div> 433 <?php } ?> 430 434 </div> 435 <?php if ( $is_inactive_widgets ) { ?> 431 436 <p class="description"><?php _e( 'This will clear all items from the inactive widgets list. You will not be able to restore any customizations.' ); ?></p> 437 <?php } ?> 432 438 </div> 433 439 <?php 434 440