Ticket #35257: 35257.2.diff
File 35257.2.diff, 1.7 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-wp-plugin-install-list-table.php
461 461 case 'update_available': 462 462 if ( $status['url'] ) { 463 463 /* translators: 1: Plugin name and version */ 464 $action_links[] = '<a class="update-now button " data-plugin="' . esc_attr( $status['file'] ) . '" data-slug="' . esc_attr( $plugin['slug'] ) . '" href="' . esc_url( $status['url'] ) . '" aria-label="' . esc_attr( sprintf( __( 'Update %s now' ), $name ) ) . '" data-name="' . esc_attr( $name ) . '">' . __( 'Update Now' ) . '</a>';464 $action_links[] = '<a class="update-now button aria-button-if-js" data-plugin="' . esc_attr( $status['file'] ) . '" data-slug="' . esc_attr( $plugin['slug'] ) . '" href="' . esc_url( $status['url'] ) . '" aria-label="' . esc_attr( sprintf( __( 'Update %s now' ), $name ) ) . '" data-name="' . esc_attr( $name ) . '">' . __( 'Update Now' ) . '</a>'; 465 465 } 466 466 467 467 break; -
src/wp-admin/js/updates.js
524 524 e.preventDefault(); 525 525 var $button = $( e.target ); 526 526 527 // Do nothing while updating and when the button is disabled. 528 if ( $button.hasClass( 'updating-message' ) || $button.hasClass( 'button-disabled' ) ) { 529 return; 530 } 531 527 532 if ( wp.updates.shouldRequestFilesystemCredentials && ! wp.updates.updateLock ) { 528 533 wp.updates.requestFilesystemCredentials( e ); 529 534 }