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: https://develop.svn.wordpress.org/trunk@18915 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-10-07 05:26:44 +00:00
parent fa861b4bf3
commit bc94322a01
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;