[wp-trac] [WordPress Trac] #24990: Nested Shortcode Inside [caption]

WordPress Trac noreply at wordpress.org
Tue Oct 6 10:41:09 UTC 2015


#24990: Nested Shortcode Inside [caption]
-------------------------------------------------+-------------------------
 Reporter:  prionkor                             |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Shortcodes                           |  Release
 Severity:  normal                               |     Version:  3.6
 Keywords:  needs-unit-tests has-patch dev-      |  Resolution:
  feedback                                       |     Focuses:
-------------------------------------------------+-------------------------

Comment (by pputzer):

 Replying to [comment:21 nofearinc]:
 > Replying to [comment:20 pputzer]:
 > > @nofearinc, what do you think of my patch based on @tychay's idea?
 Would that be a valid fix for core?
 >
 > Looks better based on the discussion above regarding
 `img_caption_shortcode_content`, although it would likely require more
 testing. Also, it's worth seeing what will the
 [https://make.wordpress.org/core/2015/09/29/shortcode-roadmap-draft-two/
 updated Shortcodes API] look like.

 I don't see how the proposed API change will impact the implementation of
 `[caption]`. The legacy `caption` attribute never supported HTML (which
 AFAIK was the reason for the switch to the enclosure syntax) and the newer
 syntax is still valid according to the proposed API.

 What would we need to do to get such a filter included as soon as
 possible? The current workaround for `[media-credit]` (replacing
 `img_caption_shortcode` is a hack I'd be really glad to be rid of).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24990#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list