- Timestamp:
- 09/14/2023 01:11:29 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r56397 r56571 687 687 <?php 688 688 if ( ! $compatible_php || ! $compatible_wp ) { 689 echo '<div class="notice inline notice-error notice-alt"><p>';689 $incompatible_notice_message = ''; 690 690 if ( ! $compatible_php && ! $compatible_wp ) { 691 _e( 'This plugin does not work with your versions of WordPress and PHP.' );691 $incompatible_notice_message .= __( 'This plugin does not work with your versions of WordPress and PHP.' ); 692 692 if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { 693 printf(693 $incompatible_notice_message .= sprintf( 694 694 /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ 695 695 ' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ), … … 697 697 esc_url( wp_get_update_php_url() ) 698 698 ); 699 wp_update_php_annotation( '</p><p><em>', '</em>');699 $incompatible_notice_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false ); 700 700 } elseif ( current_user_can( 'update_core' ) ) { 701 printf(701 $incompatible_notice_message .= sprintf( 702 702 /* translators: %s: URL to WordPress Updates screen. */ 703 703 ' ' . __( '<a href="%s">Please update WordPress</a>.' ), … … 705 705 ); 706 706 } elseif ( current_user_can( 'update_php' ) ) { 707 printf(707 $incompatible_notice_message .= sprintf( 708 708 /* translators: %s: URL to Update PHP page. */ 709 709 ' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ), 710 710 esc_url( wp_get_update_php_url() ) 711 711 ); 712 wp_update_php_annotation( '</p><p><em>', '</em>');712 $incompatible_notice_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false ); 713 713 } 714 714 } elseif ( ! $compatible_wp ) { 715 _e( 'This plugin does not work with your version of WordPress.' );715 $incompatible_notice_message .= __( 'This plugin does not work with your version of WordPress.' ); 716 716 if ( current_user_can( 'update_core' ) ) { 717 printf(717 $incompatible_notice_message .= printf( 718 718 /* translators: %s: URL to WordPress Updates screen. */ 719 719 ' ' . __( '<a href="%s">Please update WordPress</a>.' ), … … 722 722 } 723 723 } elseif ( ! $compatible_php ) { 724 _e( 'This plugin does not work with your version of PHP.' );724 $incompatible_notice_message .= __( 'This plugin does not work with your version of PHP.' ); 725 725 if ( current_user_can( 'update_php' ) ) { 726 printf(726 $incompatible_notice_message .= sprintf( 727 727 /* translators: %s: URL to Update PHP page. */ 728 728 ' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ), 729 729 esc_url( wp_get_update_php_url() ) 730 730 ); 731 wp_update_php_annotation( '</p><p><em>', '</em>');731 $incompatible_notice_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false ); 732 732 } 733 733 } 734 echo '</p></div>'; 734 735 wp_admin_notice( 736 $incompatible_notice_message, 737 array( 738 'type' => 'error', 739 'additional_classes' => array( 'notice-alt', 'inline' ), 740 ) 741 ); 735 742 } 736 743 ?>
Note: See TracChangeset
for help on using the changeset viewer.