[wp-trac] [WordPress Trac] #22773: "Gallery Settings" should be extensible

WordPress Trac noreply at wordpress.org
Fri Dec 14 20:30:04 UTC 2012


#22773: "Gallery Settings" should be extensible
-------------------------+------------------------------
 Reporter:  jakemgold    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Gallery      |     Version:  3.5
 Severity:  minor        |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by fernandopasik):

 I would like this too, but it doesn't seem to hard to do.
 At least to add a field to the gallery shortcut output we just need an
 action hook in line 375 if media-template.php.
 With just that, adding a new input there it will be on the resulting
 shortcode, example:

 <label class="setting">
         <span><?php _e( 'custom_field' ); ?></span>
         <input type="checkbox" data-setting="custom_field" />
 </label>

 in the shortcut code there will be a custom_field=true, because the media-
 editor.js already deals with other arguments we add there.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22773#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list