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:
parent
fa861b4bf3
commit
bc94322a01
|
@ -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