Use local method when handling back compat screen layout column filter. The function serves as a wrapper for but one object. see #18785.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-10-07 05:26:44 +00:00
parent 850ea83baf
commit 50078431dc
1 changed files with 1 additions and 1 deletions

View File

@ -816,7 +816,7 @@ final class WP_Screen {
$columns = apply_filters( 'screen_layout_columns', array(), $this->id, $this );
if ( ! empty( $columns ) && isset( $columns[ $this->id ] ) )
add_screen_option( 'layout_columns', array('max' => $columns[ $this->id ] ) );
$this->add_option( 'layout_columns', array('max' => $columns[ $this->id ] ) );
if ( ! isset( $this->_options['layout_columns'] ) ) {
$screen_layout_columns = 0;