Ticket #21177: save-and-insert-into-post-primary.diff
| File save-and-insert-into-post-primary.diff, 778 bytes (added by , 14 years ago) |
|---|
-
wp-admin/includes/media.php
1157 1157 ); 1158 1158 1159 1159 if ( $send ) 1160 $send = get_submit_button( __( ' Insert into Post' ), 'button', "send[$attachment_id]", false );1160 $send = get_submit_button( __( 'Save and Insert into Post' ), 'button-primary', "send[$attachment_id]", false ); 1161 1161 if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) { 1162 1162 if ( !EMPTY_TRASH_DAYS ) { 1163 1163 $delete = "<a href='" . wp_nonce_url( "post.php?action=delete&post=$attachment_id", 'delete-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Delete Permanently' ) . '</a>';