[wp-trac] [WordPress Trac] #18311: Support HTML in image captions.
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 26 23:51:53 UTC 2012
#18311: Support HTML in image captions.
----------------------------+-----------------------
Reporter: prettyboymp | Owner: sushkov
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 3.4
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+-----------------------
Changes (by sushkov):
* keywords: => has-patch
Comment:
Looks ok.
One note, I found this regex a bit shorter:
{{{
preg_match( '~((?i:<a\s.*<img\s.*?>.*?</a|<img\s.*?)>)(.*)~is', $content,
$matches );
}}}
I attached some tests you might want to take a look at and also come with
some feedback.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18311#comment:78>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list