676 | | printf( |
677 | | /* translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */ |
678 | | __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.' ), |
679 | | $theme['Name'], |
680 | | esc_url( $details_url ), |
681 | | sprintf( |
682 | | 'class="thickbox open-plugin-details-modal" aria-label="%s"', |
683 | | /* translators: 1: Theme name, 2: Version number. */ |
684 | | esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) |
685 | | ), |
686 | | $response['new_version'], |
687 | | wp_nonce_url( self_admin_url( 'update.php?action=upgrade-theme&theme=' ) . $theme_key, 'upgrade-theme_' . $theme_key ), |
688 | | sprintf( |
689 | | 'class="update-link" aria-label="%s"', |
690 | | /* translators: %s: Theme name. */ |
691 | | esc_attr( sprintf( __( 'Update %s now' ), $theme['Name'] ) ) |
692 | | ) |
693 | | ); |
| 676 | if ( $compatible_wp && $compatible_php ) { |
| 677 | printf( |
| 678 | /* translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */ |
| 679 | __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.' ), |
| 680 | $theme['Name'], |
| 681 | esc_url( $details_url ), |
| 682 | sprintf( |
| 683 | 'class="thickbox open-plugin-details-modal" aria-label="%s"', |
| 684 | /* translators: 1: Theme name, 2: Version number. */ |
| 685 | esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) |
| 686 | ), |
| 687 | $response['new_version'], |
| 688 | wp_nonce_url( self_admin_url( 'update.php?action=upgrade-theme&theme=' ) . $theme_key, 'upgrade-theme_' . $theme_key ), |
| 689 | sprintf( |
| 690 | 'class="update-link" aria-label="%s"', |
| 691 | /* translators: %s: Theme name. */ |
| 692 | esc_attr( sprintf( __( 'Update %s now' ), $theme['Name'] ) ) |
| 693 | ) |
| 694 | ); |
| 695 | } else { |
| 696 | printf( |
| 697 | /* translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */ |
| 698 | __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.<br>Current theme requirements not met. This theme requires WordPress %5$s and PHP %6$s.' ), |
| 699 | $theme['Name'], |
| 700 | esc_url( $details_url ), |
| 701 | sprintf( |
| 702 | 'class="thickbox open-plugin-details-modal" aria-label="%s"', |
| 703 | /* translators: 1: Theme name, 2: Version number. */ |
| 704 | esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) |
| 705 | ), |
| 706 | $response['new_version'], |
| 707 | $theme->get( 'Requires' ), |
| 708 | $theme->get( 'RequiresPHP' ) |
| 709 | ); |
| 710 | } |