Make current_screen an action, not a filter. see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a16fe7f86f
commit
2c789f296a
|
@ -508,7 +508,7 @@ final class WP_Screen {
|
|||
$current_screen = $this;
|
||||
$taxnow = $this->taxonomy;
|
||||
$typenow = $this->post_type;
|
||||
$current_screen = apply_filters( 'current_screen', $current_screen );
|
||||
do_action( 'current_screen', $current_screen );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue