Zero value for posts_per_page value in wp_query custom instance and for 'Blog pages show at most' option
|Reported by:||alexvorn2||Owned by:|
To show no posts if the posts_per_page value is 0.
Currently for custom instances of wp_query, if the value is 0 then this is changed with the value from posts_per_page option from the database. "get_options( 'posts_per_page' )"
For home page if we set value 0 on the settings page, in wp-admin/options-reading.php, after the saves are changed, this value is changed to 1.
I think for both cases if the posts per page value is 0 then no posts should not display.
Change History (5)
comment:4 wonderboymusic — 7 months ago
- Keywords close needs-docs removed
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed