src/Handlers/General.php
public function add_wp()
    {
        global $wp;

        if (! $wp instanceof WP) {
            return array();
        }

        $output = \get_object_vars($wp);

        unset($output['private_query_vars'], $output['public_query_vars']);

        return \array_filter($output);
    }
public function add_wp()
    {
        global $wp;

        if (! $wp instanceof WP) {
            return array();
        }

        $output = \get_object_vars($wp);

        unset($output['private_query_vars'], $output['public_query_vars']);

        return \array_filter($output);
    }
public function add_wp ( ) { global $ wp ; if ( ! $ wp instanceof WP ) { return array ( ) ; } $ output = \ get_object_vars ( $ wp ) ; unset ( $ output [ 'private_query_vars' ] , $ output [ 'public_query_vars' ] ) ; return \ array_filter ( $ output ) ; }
Add the WP global to Whoops data list.

@since  1.0.0

@return  array
Add the WP global to Whoops data list .