summaryrefslogtreecommitdiffstats
path: root/wp-includes/shortcodes.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/shortcodes.php')
-rw-r--r--wp-includes/shortcodes.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-includes/shortcodes.php b/wp-includes/shortcodes.php
index 7e3bf44..b90879c 100644
--- a/wp-includes/shortcodes.php
+++ b/wp-includes/shortcodes.php
@@ -118,6 +118,7 @@ function shortcode_parse_atts($text) {
}
function shortcode_atts($pairs, $atts) {
+ $atts = (array)$atts;
$out = array();
foreach($pairs as $name => $default) {
if ( array_key_exists($name, $atts) )
@@ -128,6 +129,6 @@ function shortcode_atts($pairs, $atts) {
return $out;
}
-add_filter('the_content', 'do_shortcode');
+add_filter( 'the_content', 'do_shortcode', 9 );
?>