Changeset 42785 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 03/05/2018 03:49:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r42777 r42785 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 ) {
Note: See TracChangeset
for help on using the changeset viewer.