[wp-trac] [WordPress Trac] #23282: Add shortcodes for inline HTML5 audio / video
WordPress Trac
noreply at wordpress.org
Thu Jun 13 18:14:26 UTC 2013
#23282: Add shortcodes for inline HTML5 audio / video
-----------------------------+---------------------
Reporter: wonderboymusic | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone: 3.6
Component: Media | Version: trunk
Severity: normal | Resolution: fixed
Keywords: |
-----------------------------+---------------------
Comment (by nacin):
As part of discussions for removing post formats (Otto42 linked to the
decisions we made), we realized that both has_shortcode() and
shortcode_exists() were simple and solid improvements to the existing
shortcode API.
It's not entirely uncommon to need to check if a shortcode is in post
content, which is currently done using `strpos( $content, '[shortcode' )`.
That's lame and there should ideally be an API for it.
has_shortcode() is still used in core, in some media API functions that
we're keeping as, again, good enhancements to the existing API (even
though post formats UI is removed).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23282#comment:86>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list