Third parameter for shortcode_atts() for audio and video shortcodes. props obenland, see #23282.
git-svn-id: http://core.svn.wordpress.org/trunk@23921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
01ac7891b6
commit
47b7e15f2a
|
@ -854,7 +854,7 @@ function wp_audio_shortcode( $attr ) {
|
||||||
foreach ( $default_types as $type )
|
foreach ( $default_types as $type )
|
||||||
$defaults_atts[$type] = '';
|
$defaults_atts[$type] = '';
|
||||||
|
|
||||||
$atts = shortcode_atts( $defaults_atts, $attr );
|
$atts = shortcode_atts( $defaults_atts, $attr, 'audio' );
|
||||||
extract( $atts );
|
extract( $atts );
|
||||||
|
|
||||||
$primary = false;
|
$primary = false;
|
||||||
|
@ -961,7 +961,7 @@ function wp_video_shortcode( $attr ) {
|
||||||
foreach ( $default_types as $type )
|
foreach ( $default_types as $type )
|
||||||
$defaults_atts[$type] = '';
|
$defaults_atts[$type] = '';
|
||||||
|
|
||||||
$atts = shortcode_atts( $defaults_atts, $attr );
|
$atts = shortcode_atts( $defaults_atts, $attr, 'video' );
|
||||||
extract( $atts );
|
extract( $atts );
|
||||||
|
|
||||||
$primary = false;
|
$primary = false;
|
||||||
|
|
Loading…
Reference in New Issue