Opened 8 years ago
Last modified 8 years ago
#41797 new enhancement
max_num_pages for WP_User_Query
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Query | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
The WP_User_Query
class supports pagination but doesn't have the public max_num_pages
property, like most of the other query classes do.
This can be useful when using e.g. paginate_links()
and also for better consistency.
Attachments (3)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Hello @birgire,
thanks for your patch. You can upload the fix and the tests in one file, you don't have to separate it into two files.
Since #41452 you don't have to add the
@access
notations in the DocBlocks anymore.