[wp-trac] [WordPress Trac] #20506: Undefined variable $screen_layout_columns when filtering out screen options
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 23 19:54:05 UTC 2012
#20506: Undefined variable $screen_layout_columns when filtering out screen options
------------------------------------+--------------------
Reporter: griffinjt | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: Warnings/Notices | Version: 3.3.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+--------------------
Comment (by ryan):
nacin and I discussed introducing get_user_option() and deprecating the
global.
Lines like this:
{{{
echo (int) $screen_layout_columns ? (int) $screen_layout_columns : 'auto';
}}}
Would become:
{{{
echo get_current_screen()->get_user_option( 'layout_columns', 'auto' );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20506#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list