[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
Sat Apr 20 09:04:16 UTC 2013
#24142: Zero value for posts_per_page value in wp_query custom instance and for
'Blog pages show at most' option
-----------------------------+--------------------------
Reporter: alexvorn2 | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Query
Version: | Severity: normal
Keywords: |
-----------------------------+--------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24142>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list