Bug? post_gallery filter parameter always empty string
-
In
functions.php
of my custom theme:function custom_gallery($attr) { /* .. */ } add_action('post_gallery', 'custom_gallery');
The
$attr
is always an empty string. But it should be an array. When I look at thewp-includes/media.php
line 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
$attr
value?
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.