Ticket #38674: 38674.diff
File 38674.diff, 1.8 KB (added by , 7 years ago) |
---|
-
src/wp-admin/css/common.css
1548 1548 display: none; 1549 1549 } 1550 1550 1551 #dismissed-updates li > p { 1552 margin-top: 0; 1553 } 1554 1555 #dismiss, 1556 #undismiss { 1557 margin-left: 0.5em; 1558 } 1559 1551 1560 form.upgrade { 1552 1561 margin-top: 8px; 1553 1562 } -
src/wp-admin/update-core.php
138 138 $hide_text = esc_js( __( 'Hide hidden updates' ) ); 139 139 ?> 140 140 <script type="text/javascript"> 141 142 jQuery(function($) { 143 $('dismissed-updates').show(); 144 $('#show-dismissed').toggle(function(){$(this).text('<?php echo $hide_text; ?>');}, function() {$(this).text('<?php echo $show_text; ?>')}); 145 $('#show-dismissed').click(function() { $('#dismissed-updates').toggle('slow');}); 141 jQuery(function( $ ) { 142 $( 'dismissed-updates' ).show(); 143 $( '#show-dismissed' ).toggle( function() { $( this ).text( '<?php echo $hide_text; ?>' ).attr( 'aria-expanded', 'true' ); }, function() { $( this ).text( '<?php echo $show_text; ?>' ).attr( 'aria-expanded', 'false' ); } ); 144 $( '#show-dismissed' ).click( function() { $( '#dismissed-updates' ).toggle( 'fast' ); } ); 146 145 }); 147 146 </script> 148 147 <?php 149 echo '<p class="hide-if-no-js">< a id="show-dismissed" href="#">' . __( 'Show hidden updates' ) . '</a></p>';148 echo '<p class="hide-if-no-js"><button type="button" class="button" id="show-dismissed" aria-expanded="false">' . __( 'Show hidden updates' ) . '</button></p>'; 150 149 echo '<ul id="dismissed-updates" class="core-updates dismissed">'; 151 150 foreach ( (array) $dismissed as $update ) { 152 151 echo '<li>';