[wp-trac] [WordPress Trac] #25295: Adding additional classes to image captions
WordPress Trac
noreply at wordpress.org
Sat Mar 1 15:58:20 UTC 2014
#25295: Adding additional classes to image captions
-------------------------+--------------------
Reporter: jpswade | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.9
Component: Media | Version: 3.6.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------+--------------------
Comment (by rhyswynne):
As a learning experiment for me and getting me contributing, I wrote a
patch for this that adds the "class" attribute to the [caption] shortcode.
This is added along with the align attribute at the end (so the structure
is class="wp-caption [align attribute] [class attribute]").
Hopefully this is a good starting block for somebody.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25295#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list