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:
parent
850ea83baf
commit
50078431dc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue