[wp-trac] [WordPress Trac] #20506: Undefined variable $screen_layout_columns when filtering out screen options

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 24 20:46:06 UTC 2012


#20506: Undefined variable $screen_layout_columns when filtering out screen options
------------------------------------+---------------------
 Reporter:  griffinjt               |       Owner:  ryan
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  3.4
Component:  Warnings/Notices        |     Version:  3.3.1
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |
------------------------------------+---------------------
Changes (by ryan):

 * owner:   => ryan
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [20579]:
 {{{
 #!CommitTicketReference repository="" revision="20579"
 Clean out layout columns API in WP_Screen.

 * Move layout column setup into render_screen_meta() so that the number of
 columns is available earlier.
 * Store the user provisioned number of columns in an instance var.
 * Access the var with get_columns()
 * Move all templates away from the screen_layout_columns global to the
 get_columns() method.
 * Deprecate the global
 * Remove the no longer needed check for 'auto' in the user option.
 * Cast the user option to an int.

 Props griffinjt
 fixes #20506
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20506#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list