WordPress.org

Make WordPress Core

Ticket #19696: media.php.patch

File media.php.patch, 1.3 KB (added by pedrogas_g, 3 years ago)

patch

  • media.php

     
    11411141        ); 
    11421142 
    11431143        if ( $send ) 
    1144                 $send = get_submit_button( __( 'Insert into Post' ), 'button', "send[$attachment_id]", false ); 
     1144                $send = apply_filters('add_media_button',get_submit_button( __( 'Insert into Post' ), 'button', "send[$attachment_id]", false ),$send,$attachment_id,$attachment_url); 
    11451145        if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) { 
    11461146                if ( !EMPTY_TRASH_DAYS ) { 
    11471147                        $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>'; 
     
    13771377                <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label> 
    13781378                <input type="file" name="async-upload" id="async-upload" /> 
    13791379                <?php submit_button( __( 'Upload' ), 'button', 'html-upload', false ); ?> 
    1380                 <a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a> 
     1380                <a href="#" onClick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a> 
    13811381        </p> 
    13821382        <div class="clear"></div> 
    13831383<?php do_action('post-html-upload-ui'); ?>