Oops. Forgot that we support a PHP version from 2007. Either that or I've been doing a lot of JS.
Props kovshenin. See [24789]. git-svn-id: https://develop.svn.wordpress.org/trunk@24792 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8a54be6786
commit
77873dedcc
@ -918,7 +918,7 @@ function wp_audio_shortcode( $attr ) {
|
|||||||
unset( $atts[$a] );
|
unset( $atts[$a] );
|
||||||
}
|
}
|
||||||
|
|
||||||
$attr_strings = [];
|
$attr_strings = array();
|
||||||
foreach ( $atts as $k => $v ) {
|
foreach ( $atts as $k => $v ) {
|
||||||
$attr_strings[] = $k . '="' . esc_attr( $v ) . '"';
|
$attr_strings[] = $k . '="' . esc_attr( $v ) . '"';
|
||||||
}
|
}
|
||||||
@ -1056,7 +1056,7 @@ function wp_video_shortcode( $attr ) {
|
|||||||
unset( $atts[$a] );
|
unset( $atts[$a] );
|
||||||
}
|
}
|
||||||
|
|
||||||
$attr_strings = [];
|
$attr_strings = array();
|
||||||
foreach ( $atts as $k => $v ) {
|
foreach ( $atts as $k => $v ) {
|
||||||
$attr_strings[] = $k . '="' . esc_attr( $v ) . '"';
|
$attr_strings[] = $k . '="' . esc_attr( $v ) . '"';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user