Changeset 28126 for trunk/src/wp-admin/theme-install.php
- Timestamp:
- 04/15/2014 01:15:43 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/theme-install.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-install.php
r28123 r28126 47 47 'canInstall' => current_user_can( 'install_themes' ), 48 48 'installURI' => current_user_can( 'install_themes' ) ? self_admin_url( 'theme-install.php' ) : null, 49 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ), 50 'updateURI' => self_admin_url( 'update.php' ), 51 '_nonceInstall' => wp_create_nonce( 'install-theme' ) 49 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ) 52 50 ), 53 51 'l10n' => array( … … 57 55 'upload' => __( 'Upload Theme' ), 58 56 'back' => __( 'Back' ), 59 'error' => sprintf( __( 'An unexpected error occurred and we can᾿t reach WordPress.org. If you continue to have problems, please try the <a href="%s">support forums</a>.' ), __( 'https://wordpress.org/support/' ))57 'error' => __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' ) 60 58 ), 61 59 'installedThemes' => array_keys( $installed_themes ), … … 200 198 201 199 <div class="theme-actions"> 202 <a class="button button-primary" href="{{ data.install URI}}"><?php esc_html_e( 'Install' ); ?></a>200 <a class="button button-primary" href="{{ data.install_url }}"><?php esc_html_e( 'Install' ); ?></a> 203 201 <a class="button button-secondary preview install-theme-preview" href="#"><?php esc_html_e( 'Preview' ); ?></a> 204 202 </div> … … 216 214 <a href="#" class="button button-primary theme-install disabled"><?php _e( 'Installed' ); ?></a> 217 215 <# } else { #> 218 <a href="{{ data.install URI}}" class="button button-primary theme-install"><?php _e( 'Install' ); ?></a>216 <a href="{{ data.install_url }}" class="button button-primary theme-install"><?php _e( 'Install' ); ?></a> 219 217 <# } #> 220 218 </div> … … 234 232 <span class="five"></span> 235 233 <# if ( data.num_ratings ) { #> 236 <p class="ratings"> ({{ data.num_ratings }})</p>234 <p class="ratings">{{ data.num_ratings }}</p> 237 235 <# } else { #> 238 236 <p class="ratings"><?php _e( 'No ratings.' ); ?></p>
Note: See TracChangeset
for help on using the changeset viewer.