[wp-trac] [WordPress Trac] #9997: martian second empty param in
apply_filters
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 1 13:18:34 GMT 2009
#9997: martian second empty param in apply_filters
--------------------------+-------------------------------------------------
Reporter: michelwppi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
By creating filter for function ( in wp-includes/media.php - line 578)
{{{
function img_caption_shortcode($attr, $content = null) {
}}}
during debugging, I found the martian empty snd params !
{{{
$output = apply_filters('img_caption_shortcode', '', $attr, $content);
}}}
where we attempt to find only the two params of the function, there is
here this empty martian param and to create the filter (add_filter) it was
necessary to create a dummy first param for a total of 3 and so on... I
don't find elsewhere in wp core some place where this filter is used..
Is it possible to erase this empty param to be coherent.
Best regards
Michel
NOTE :
it is the same bizarous empty param here in line 611
{{{
$output = apply_filters('post_gallery', '', $attr);
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9997>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list