[wp-trac] [WordPress Trac] #33481: Not additional $public_only parameter to the get_usernumposts filter(count_user_posts function)
WordPress Trac
noreply at wordpress.org
Fri Aug 21 07:08:25 UTC 2015
#33481: Not additional $public_only parameter to the get_usernumposts
filter(count_user_posts function)
--------------------------+-----------------------------
Reporter: tmatsuur | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Not additional `$public_only` parameter to the `get_usernumposts` filter.
user.php
280line:
{{{
* @since 4.3.0 Added `$public_only` argument.
}}}
285line:
{{{
* @param bool $public_only Whether to limit counted posts
to public posts.
}}}
287line:
{{{
return apply_filters( 'get_usernumposts', $count, $userid,
$post_type );
}}}
Correctly,
287line:
{{{
return apply_filters( 'get_usernumposts', $count, $userid,
$post_type, $public_only );
}}}
280 line of `since` also wonder to change?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33481>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list