Changeset 48636 for trunk/src/wp-admin/themes.php
- Timestamp:
- 07/27/2020 01:10:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r48428 r48636 693 693 </p> 694 694 695 <# if ( ! data.compatibleWP || ! data.compatiblePHP ) { #> 696 <div class="notice notice-error notice-alt notice-large"><p> 697 <# if ( ! data.compatibleWP && ! data.compatiblePHP ) { #> 698 <?php 699 _e( 'This theme doesn’t work with your versions of WordPress and PHP.' ); 700 if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { 701 printf( 702 /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ 703 ' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ), 704 self_admin_url( 'update-core.php' ), 705 esc_url( wp_get_update_php_url() ) 706 ); 707 wp_update_php_annotation( '</p><p><em>', '</em>' ); 708 } elseif ( current_user_can( 'update_core' ) ) { 709 printf( 710 /* translators: %s: URL to WordPress Updates screen. */ 711 ' ' . __( '<a href="%s">Please update WordPress</a>.' ), 712 self_admin_url( 'update-core.php' ) 713 ); 714 } elseif ( current_user_can( 'update_php' ) ) { 715 printf( 716 /* translators: %s: URL to Update PHP page. */ 717 ' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ), 718 esc_url( wp_get_update_php_url() ) 719 ); 720 wp_update_php_annotation( '</p><p><em>', '</em>' ); 721 } 722 ?> 723 <# } else if ( ! data.compatibleWP ) { #> 724 <?php 725 _e( 'This theme doesn’t work with your version of WordPress.' ); 726 if ( current_user_can( 'update_core' ) ) { 727 printf( 728 /* translators: %s: URL to WordPress Updates screen. */ 729 ' ' . __( '<a href="%s">Please update WordPress</a>.' ), 730 self_admin_url( 'update-core.php' ) 731 ); 732 } 733 ?> 734 <# } else if ( ! data.compatiblePHP ) { #> 735 <?php 736 _e( 'This theme doesn’t work with your version of PHP.' ); 737 if ( current_user_can( 'update_php' ) ) { 738 printf( 739 /* translators: %s: URL to Update PHP page. */ 740 ' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ), 741 esc_url( wp_get_update_php_url() ) 742 ); 743 wp_update_php_annotation( '</p><p><em>', '</em>' ); 744 } 745 ?> 746 <# } #> 747 </p></div> 748 <# } #> 749 695 750 <# if ( data.actions.autoupdate ) { #> 696 751 <?php echo wp_theme_auto_update_setting_template(); ?> … … 703 758 </div> 704 759 <# } #> 760 705 761 <p class="theme-description">{{{ data.description }}}</p> 706 762
Note: See TracChangeset
for help on using the changeset viewer.