Changeset 44937 for trunk/src/wp-admin/includes/plugin-install.php
- Timestamp:
- 03/20/2019 01:43:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r44656 r44937 770 770 esc_url( wp_get_update_php_url() ) 771 771 ); 772 echo '</p>'; 773 wp_update_php_annotation( );772 773 wp_update_php_annotation( '</p><p><em>', '</em>' ); 774 774 } else { 775 775 echo '</p>'; … … 828 828 case 'update_available': 829 829 if ( $status['url'] ) { 830 echo '<a data-slug="' . esc_attr( $api->slug ) . '" data-plugin="' . esc_attr( $status['file'] ) . '" id="plugin_update_from_iframe" class="button button-primary right" href="' . $status['url'] . '" target="_parent">' . __( 'Install Update Now' ) . '</a>'; 830 if ( $compatible_php ) { 831 echo '<a data-slug="' . esc_attr( $api->slug ) . '" data-plugin="' . esc_attr( $status['file'] ) . '" id="plugin_update_from_iframe" class="button button-primary right" href="' . $status['url'] . '" target="_parent">' . __( 'Install Update Now' ) . '</a>'; 832 } else { 833 printf( 834 '<button type="button" class="button button-primary button-disabled right" disabled="disabled">%s</button>', 835 _x( 'Cannot Update', 'plugin' ) 836 ); 837 } 831 838 } 832 839 break;
Note: See TracChangeset
for help on using the changeset viewer.