mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Third parameter for shortcode_atts() for audio and video shortcodes. props obenland, see #23282.
git-svn-id: https://develop.svn.wordpress.org/trunk@23921 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -854,7 +854,7 @@ function wp_audio_shortcode( $attr ) {
|
||||
foreach ( $default_types as $type )
|
||||
$defaults_atts[$type] = '';
|
||||
|
||||
$atts = shortcode_atts( $defaults_atts, $attr );
|
||||
$atts = shortcode_atts( $defaults_atts, $attr, 'audio' );
|
||||
extract( $atts );
|
||||
|
||||
$primary = false;
|
||||
@@ -961,7 +961,7 @@ function wp_video_shortcode( $attr ) {
|
||||
foreach ( $default_types as $type )
|
||||
$defaults_atts[$type] = '';
|
||||
|
||||
$atts = shortcode_atts( $defaults_atts, $attr );
|
||||
$atts = shortcode_atts( $defaults_atts, $attr, 'video' );
|
||||
extract( $atts );
|
||||
|
||||
$primary = false;
|
||||
|
||||
Reference in New Issue
Block a user