Bug? post_gallery filter parameter always empty string
-
In
functions.phpof my custom theme:function custom_gallery($attr) { /* .. */ } add_action('post_gallery', 'custom_gallery');The
$attris always an empty string. But it should be an array. When I look at thewp-includes/media.phpline 597:function gallery_shortcode($attr) { global $post; // Allow plugins/themes to override the default gallery template. $output = apply_filters('post_gallery', '', $attr);It seems to be a bug. But then again…
What to do? How do I obtain proper
$attrvalue?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Bug? post_gallery filter parameter always empty string’ is closed to new replies.