Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#33520 closed enhancement (fixed)

Docs of count_user_posts() and get_usernumposts filter - $post_type can be clarified

Reported by: tyxla's profile tyxla Owned by: drewapicture's profile DrewAPicture
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.4
Component: Users Keywords: has-patch
Focuses: docs Cc:

Description

As @dimadin suggested here: #33481 - $post_type can be better clarified to describe that either a single post type or an array of post types can be passed.

Attachments (1)

33520.patch (1.2 KB) - added by tyxla 9 years ago.
Docs of count_user_posts() and get_usernumposts filter - improving $post_type to describe that either a single post type or an array of post types can be passed.

Download all attachments as: .zip

Change History (4)

@tyxla
9 years ago

Docs of count_user_posts() and get_usernumposts filter - improving $post_type to describe that either a single post type or an array of post types can be passed.

#1 @tyxla
9 years ago

  • Keywords has-patch added

#2 @DrewAPicture
9 years ago

  • Milestone changed from Awaiting Review to 4.4

Thanks for the patch.

#3 @DrewAPicture
9 years ago

  • Owner set to DrewAPicture
  • Resolution set to fixed
  • Status changed from new to closed

In 33716:

Docs: Better clarify that the $post_type parameter for the get_usernumposts filter and count_user_posts() can accept either a single post type or array of post types.

Props tyxla
See #33481. Fixes #33520.

Note: See TracTickets for help on using tickets.