WordPress.org

Make WordPress Core

Ticket #21177: save-and-insert-into-post-primary.diff

File save-and-insert-into-post-primary.diff, 778 bytes (added by lessbloat, 22 months ago)
  • wp-admin/includes/media.php

     
    11571157        ); 
    11581158 
    11591159        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 ); 
    11611161        if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) { 
    11621162                if ( !EMPTY_TRASH_DAYS ) { 
    11631163                        $delete = "<a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-attachment_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Delete Permanently' ) . '</a>';