Opened 9 years ago
Last modified 9 years ago
#41797 new enhancement
max_num_pages for WP_User_Query
| Reported by: | birgire | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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
@accessnotations in the DocBlocks anymore.