[theme-reviewers] [audio] shortcode

Justin Tadlock justin at justintadlock.com
Mon Jan 14 03:00:42 UTC 2013


Here's an example:

[embed]http://soundcloud.com/dubstep/on-my-way-by-party-ghost[/embed]

Support was added in 3.5:
http://core.trac.wordpress.org/changeset/22003

On 1/13/2013 6:09 PM, Thomas Scholz wrote:
> Justin Tadlock,
>
>> Isn't SoundCloud embed support built in now?  We should use that.
>
> Do you have an example?
>
> How can I know the blog isn’t using some plugin for that?
>
>> I think the [audio] shortcode is something used on wordpress.com.
>
> Then it should not be part of the regular test data, right? Unresolved 
> shortcodes are broken content.
>
> Even a workaround like …
>
> add_action( 'the_post', function( $post ) {
>     FALSE !== stripos( $post->post_content, '[audio' )
>     && empty ( $GLOBALS['shortcode_tags']['audio'] )
>     && add_shortcode( 'audio', '__return_false' );
> });
>
> … wouldn’t help much, because the post content is:
>
> Link:
>
> <a 
> href="http://t5.mu.wp/files/2012/07/originaldixielandjazzbandwithalbernard-stlouisblues.mp3">St. 
> Louis Blues</a>
>
> Audio shortcode:
>
> [audio 
> http://t5.mu.wp/files/2012/07/originaldixielandjazzbandwithalbernard-stlouisblues.mp3]
>
> And if the next version contains [slide] we start all over.
>
> Thomas
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>



More information about the theme-reviewers mailing list