diff --git a/wp-includes/shortcodes.php b/wp-includes/shortcodes.php index 15f8561d5b..47cb57a9b2 100644 --- a/wp-includes/shortcodes.php +++ b/wp-includes/shortcodes.php @@ -65,12 +65,12 @@ $shortcode_tags = array(); * * // [bartag foo="bar"] * function bartag_func($atts) { - * extract(shortcode_atts(array( + * $args = shortcode_atts(array( * 'foo' => 'no foo', * 'baz' => 'default baz', - * ), $atts)); + * ), $atts); * - * return "foo = {$foo}"; + * return "foo = {$args['foo']}"; * } * add_shortcode('bartag', 'bartag_func'); *