Ticket #19696: media.php.patch
| File media.php.patch, 1.3 KB (added by , 14 years ago) |
|---|
-
media.php
1141 1141 ); 1142 1142 1143 1143 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); 1145 1145 if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) { 1146 1146 if ( !EMPTY_TRASH_DAYS ) { 1147 1147 $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>'; … … 1377 1377 <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label> 1378 1378 <input type="file" name="async-upload" id="async-upload" /> 1379 1379 <?php submit_button( __( 'Upload' ), 'button', 'html-upload', false ); ?> 1380 <a href="#" on click="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> 1381 1381 </p> 1382 1382 <div class="clear"></div> 1383 1383 <?php do_action('post-html-upload-ui'); ?>