original_string: private function add_default_data($data = [])
      {
          global $wp_query, $post;
          
          $data['wp_query'] = $wp_query;
          $data['post'] = &$post;
          $data['current_view'] = $this->current_view;
          $data['request'] = Request::get_root_instance();
          $data['errors'] = Validation::$errors;
  
          return $data;
      }
code: private function add_default_data($data = [])
      {
          global $wp_query, $post;
          
          $data['wp_query'] = $wp_query;
          $data['post'] = &$post;
          $data['current_view'] = $this->current_view;
          $data['request'] = Request::get_root_instance();
          $data['errors'] = Validation::$errors;
  
          return $data;
      }
code_tokens: private function add_default_data ( $ data = [ ] ) { global $ wp_query , $ post ; $ data [ 'wp_query' ] = $ wp_query ; $ data [ 'post' ] = & $ post ; $ data [ 'current_view' ] = $ this -> current_view ; $ data [ 'request' ] = Request :: get_root_instance ( ) ; $ data [ 'errors' ] = Validation :: $ errors ; return $ data ; }
docstring: Add default data to template.
  
  @since  1.0.0
  
  @param array $data Data array.
  @return array
docstring_tokens: Add default data to template .