Make WordPress Core

Changeset 27748


Ignore:
Timestamp:
03/26/2014 08:07:10 PM (10 years ago)
Author:
nacin
Message:

Merge some theme update strings.

props pavelevap, yoavf.
fixes #25083.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r27470 r27748  
    149149        if ( !is_multisite() ) {
    150150            if ( ! current_user_can('update_themes') ) {
    151                 $html = sprintf( '<p><strong>' . __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a>.') . '</strong></p>', $theme_name, $details_url, $update['new_version']);
     151                $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.' ) . '</strong></p>',
     152                    $theme_name, esc_url( $details_url ), esc_attr( $theme['Name'] ), $update['new_version'] );
    152153            } else if ( empty( $update['package'] ) ) {
    153                 $html = sprintf( '<p><strong>' . __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a>. <em>Automatic update is unavailable for this theme.</em>') . '</strong></p>', $theme_name, $details_url, $update['new_version']);
     154                $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>' ) . '</strong></p>',
     155                    $theme_name, esc_url( $details_url ), esc_attr( $theme['Name'] ), $update['new_version'] );
    154156            } else {
    155                 $html = sprintf( '<p><strong>' . __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a> or <a href="%4$s" %5$s>update now</a>.') . '</strong></p>', $theme_name, $details_url, $update['new_version'], $update_url, $update_onclick );
     157                $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update now</a>.' ) . '</strong></p>',
     158                    $theme_name, esc_url( $details_url ), esc_attr( $theme['Name'] ), $update['new_version'], $update_url, $update_onclick );
    156159            }
    157160        }
Note: See TracChangeset for help on using the changeset viewer.