Skip to content

Commit

Permalink
Merge pull request #1243 from xwp/bugfix/get_current_screen
Browse files Browse the repository at this point in the history
"get_current_screen()" => "\get_current_screen()"
  • Loading branch information
kidunot89 authored Mar 26, 2021
2 parents 75510eb + 9036bee commit 0d0f7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-alerts-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct( $plugin ) {
* @return array
*/
public function parse_request( $query_vars ) {
$screen = get_current_screen();
$screen = \get_current_screen();
if ( 'edit-wp_stream_alerts' === $screen->id && Alerts::POST_TYPE === $query_vars['post_type'] && empty( $query_vars['post_status'] ) ) {
$query_vars['post_status'] = array( 'wp_stream_enabled', 'wp_stream_disabled' );
}
Expand Down

0 comments on commit 0d0f7fc

Please sign in to comment.