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: http://core.svn.wordpress.org/trunk@24792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mark Jaquith 2013-07-24 06:36:29 +00:00
parent 0c87edd981
commit 48eefd5240
1 changed files with 2 additions and 2 deletions

View File

@ -918,7 +918,7 @@ function wp_audio_shortcode( $attr ) {
unset( $atts[$a] );
}
$attr_strings = [];
$attr_strings = array();
foreach ( $atts as $k => $v ) {
$attr_strings[] = $k . '="' . esc_attr( $v ) . '"';
}
@ -1056,7 +1056,7 @@ function wp_video_shortcode( $attr ) {
unset( $atts[$a] );
}
$attr_strings = [];
$attr_strings = array();
foreach ( $atts as $k => $v ) {
$attr_strings[] = $k . '="' . esc_attr( $v ) . '"';
}