#9307 closed enhancement (fixed)
Add filter for posts_per_page to wp_edit_posts_query
| Reported by: | aaroncampbell | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Administration | Version: | 2.7.1 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
Description
It would be really nice to be able to control the number of posts displayed per page in the admin section to be controlled by a plugin. I'm attaching a patch. I made the filter 'edit_posts_per_page' but maybe 'admin_posts_per_page' would be better?
Attachments (1)
Change History (4)
This ticket was mentioned in PR #9325 on WordPress/wordpress-develop by @dmsnell.
12 months ago
#2
Replaces #9307
This patch introduces a speedup for the seems_utf8() function. Currently, the function scans every byte in user-land PHP code. This is prohibitively slow. In this change, spans of ASCII bytes are fast-tracked through the use of strspn(), which can scan valid UTF-8 single-byte characters at around 3600 MB/s instead of around 300 MB/s as is the case with the existing code.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
[10749]