[wp-trac] [WordPress Trac] #19696: Allow to change de the Insert to post button

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 30 10:56:36 UTC 2011


#19696: Allow to change de the Insert to post button
--------------------------+------------------------------------------------
 Reporter:  pedrogas_g    |      Owner:
     Type:  feature       |     Status:  new
  request                 |  Milestone:  Awaiting Review
 Priority:  normal        |    Version:  3.3
Component:  Upload        |   Keywords:  has-patch needs-codex dev-feedback
 Severity:  normal        |
--------------------------+------------------------------------------------
 You can change in the wp-admin/includes/media.php line 1143


 {{{
 if ( $send )
                 $send = get_submit_button( __( 'Insert into Post' ),
 'button', "send[$attachment_id]", false );
 }}}


 to something like this



 {{{
 if ( $send )
                 $send =
 apply_filters('add_media_button',get_submit_button( __( 'Insert into Post'
 ), 'button', "send[$attachment_id]", false
 ),$send,$attachment_id,$attachment_url);
 }}}


 to allow use the upload in any kind of sitution thanks.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19696>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list