[wp-trac] [WordPress Trac] #24142: Zero value for posts_per_page value in wp_query custom instance and for 'Blog pages show at most' option

WordPress Trac noreply at wordpress.org
Sun Mar 5 23:03:58 UTC 2023


#24142: Zero value for posts_per_page value in wp_query custom instance and for
'Blog pages show at most' option
--------------------------------------------+-----------------------------
 Reporter:  alexvorn2                       |       Owner:  SergeyBiryukov
     Type:  defect (bug)                    |      Status:  reviewing
 Priority:  normal                          |   Milestone:  Future Release
Component:  Query                           |     Version:
 Severity:  normal                          |  Resolution:
 Keywords:  needs-unit-tests needs-testing  |     Focuses:
--------------------------------------------+-----------------------------
Changes (by Howdy_McGee):

 * Attachment "24142.2.diff" added.

 Patch refreshed to only include updates to `posts_per_page` (not
 `comments_per_page` or `posts_per_rss`). Includes test for
 `posts_per_page` based on the table from reply #10. Progresses WP_Query
 tests in #49149. Ultimately makes `posts_per_page` more predictable.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/24142>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list