- Timestamp:
- 07/10/2020 06:06:46 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-theme-installer-skin.php
r48390 r48417 322 322 323 323 $install_actions['ovewrite_theme'] = sprintf( 324 '<a class="button button-primary " href="%s" target="_parent">%s</a>',324 '<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>', 325 325 wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'theme-upload' ), 326 esc_html( __( 'Replace current with uploaded' ))326 __( 'Replace current with uploaded' ) 327 327 ); 328 328 } else { … … 330 330 } 331 331 332 $cancel_url = add_query_arg( 'action', 'upload-theme-cancel-overwrite', $this->url ); 333 332 334 $install_actions['themes_page'] = sprintf( 333 335 '<a class="button" href="%s" target="_parent">%s</a>', 334 self_admin_url( 'theme-install.php' ),336 wp_nonce_url( $cancel_url, 'theme-upload-cancel-overwrite' ), 335 337 __( 'Cancel and go back' ) 336 338 ); … … 348 350 349 351 if ( ! empty( $install_actions ) ) { 352 printf( 353 '<p class="update-from-upload-expired hidden">%s</p>', 354 __( 'The uploaded file has expired. Please go back and upload it again.' ) 355 ); 350 356 echo '<p class="update-from-upload-actions">' . implode( ' ', (array) $install_actions ) . '</p>'; 351 357 }
Note: See TracChangeset
for help on using the changeset viewer.