[wp-trac] [WordPress Trac] #20506: Undefined variable $screen_layout_columns when filtering out screen options
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 21 21:36:39 UTC 2012
#20506: Undefined variable $screen_layout_columns when filtering out screen options
------------------------------+------------------------------------
Reporter: griffinjt | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Warnings/Notices | Version: 3.3.1
Severity: normal | Keywords: has-patch dev-feedback
------------------------------+------------------------------------
When using the screen_options_show_screen filter to remove the screen tab
completely, an undefined variable notice appears with WP_DEBUG on.
Specifically, the $screen_layout_columns variable is undefined because the
current code expects it to be set and to be an integer.
This patch fixes it by setting it equal to itself while still casting it
as an integer. Can't find any issues in my testing.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20506>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list