original_string: public static function load_cookie() {
  
  		$theme_name  = filter_input( INPUT_COOKIE, self::get_cookie_name() );
  
  		if ( ! $theme_name ) {
  			return;
  		}
  
  		$theme = wp_get_theme( $theme_name );
  
  		if (
  			$theme->exists()
  			&& $theme->get( 'Name' ) !== get_option( 'current_theme' )
  			&& $theme->is_allowed()
  		) {
  			self::$theme = $theme;
  		}
  	}
code: public static function load_cookie() {
  
  		$theme_name  = filter_input( INPUT_COOKIE, self::get_cookie_name() );
  
  		if ( ! $theme_name ) {
  			return;
  		}
  
  		$theme = wp_get_theme( $theme_name );
  
  		if (
  			$theme->exists()
  			&& $theme->get( 'Name' ) !== get_option( 'current_theme' )
  			&& $theme->is_allowed()
  		) {
  			self::$theme = $theme;
  		}
  	}
code_tokens: public static function load_cookie ( ) { $ theme_name = filter_input ( INPUT_COOKIE , self :: get_cookie_name ( ) ) ; if ( ! $ theme_name ) { return ; } $ theme = wp_get_theme ( $ theme_name ) ; if ( $ theme -> exists ( ) && $ theme -> get ( 'Name' ) !== get_option ( 'current_theme' ) && $ theme -> is_allowed ( ) ) { self :: $ theme = $ theme ; } }
docstring: Sets if cookie is defined to non-default theme.
docstring_tokens: Sets if cookie is defined to non - default theme .