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;
		}
	}
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;
		}
	}
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 ; } }
Sets if cookie is defined to non-default theme.
Sets if cookie is defined to non - default theme .