- Timestamp:
- 07/10/2020 06:06:46 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-installer-skin.php
r48390 r48417 293 293 294 294 $install_actions['ovewrite_plugin'] = sprintf( 295 '<a class="button button-primary " href="%s" target="_parent">%s</a>',295 '<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>', 296 296 wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'plugin-upload' ), 297 esc_html( __( 'Replace current with uploaded' ))297 __( 'Replace current with uploaded' ) 298 298 ); 299 299 } else { … … 301 301 } 302 302 303 $cancel_url = add_query_arg( 'action', 'upload-plugin-cancel-overwrite', $this->url ); 304 303 305 $install_actions['plugins_page'] = sprintf( 304 306 '<a class="button" href="%s">%s</a>', 305 self_admin_url( 'plugin-install.php' ),307 wp_nonce_url( $cancel_url, 'plugin-upload-cancel-overwrite' ), 306 308 __( 'Cancel and go back' ) 307 309 ); … … 319 321 320 322 if ( ! empty( $install_actions ) ) { 323 printf( 324 '<p class="update-from-upload-expired hidden">%s</p>', 325 __( 'The uploaded file has expired. Please go back and upload it again.' ) 326 ); 321 327 echo '<p class="update-from-upload-actions">' . implode( ' ', (array) $install_actions ) . '</p>'; 322 328 }
Note: See TracChangeset
for help on using the changeset viewer.