[wp-trac] [WordPress Trac] #11385: a couple of uninstantiated options
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 11 16:33:24 UTC 2009
#11385: a couple of uninstantiated options
-------------------------------------------+--------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.9
Component: Optimization | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch commit dev-feedback |
-------------------------------------------+--------------------------------
Comment(by nacin):
Patch that standardizes filters, standardizes checks to prevent $per_page
being < 1, and prevents get_user_option from checking for a blog option.
Also removes an orphaned {{{$posts_per_page =
get_option('posts_per_page')}}} in the admin.php bootstrap. The variable
is never used, though it is overwritten in post.php, and appears to be an
artifact that is left over from before the time of screen options.
Probably good for 3.0. To fix in 2.9, I'd suggest the simple
get_user_option change of setting the third variable to false, turning off
blog option checking.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11385#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list