Changeset 37714 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 06/15/2016 04:36:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r37488 r37714 173 173 if ( ! current_user_can('update_themes') ) { 174 174 /* translators: 1: theme name, 2: theme details URL, 3: accessibility text, 4: version number */ 175 $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox " aria-label="%3$s">View version %4$s details</a>.' ) . '</strong></p>',175 $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a>.' ) . '</strong></p>', 176 176 $theme_name, 177 177 esc_url( $details_url ), … … 182 182 } elseif ( empty( $update['package'] ) ) { 183 183 /* translators: 1: theme name, 2: theme details URL, 3: accessibility text, 4: version number */ 184 $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox " aria-label="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>' ) . '</strong></p>',184 $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>' ) . '</strong></p>', 185 185 $theme_name, 186 186 esc_url( $details_url ), … … 191 191 } else { 192 192 /* translators: 1: theme name, 2: theme details URL, 3: accessibility text, 4: version number, 5: update URL, 6: accessibility text */ 193 $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox " aria-label="%3$s">View version %4$s details</a> or <a href="%5$s" aria-label="%6$s">update now</a>.' ) . '</strong></p>',193 $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a> or <a href="%5$s" aria-label="%6$s" id="update-theme" data-slug="%7$s">update now</a>.' ) . '</strong></p>', 194 194 $theme_name, 195 195 esc_url( $details_url ), … … 199 199 $update_url, 200 200 /* translators: %s: theme name */ 201 esc_attr( sprintf( __( 'Update %s now' ), $theme_name ) ) 201 esc_attr( sprintf( __( 'Update %s now' ), $theme_name ) ), 202 $stylesheet 202 203 ); 203 204 }
Note: See TracChangeset
for help on using the changeset viewer.