private function validate_sidebar( $sidebar_id ) {
		global $wp_registered_sidebars;

		Utils\wp_register_unused_sidebar();

		if ( ! array_key_exists( $sidebar_id, $wp_registered_sidebars ) ) {
			WP_CLI::error( 'Invalid sidebar.' );
		}
	}
private function validate_sidebar( $sidebar_id ) {
		global $wp_registered_sidebars;

		Utils\wp_register_unused_sidebar();

		if ( ! array_key_exists( $sidebar_id, $wp_registered_sidebars ) ) {
			WP_CLI::error( 'Invalid sidebar.' );
		}
	}
private function validate_sidebar ( $ sidebar_id ) { global $ wp_registered_sidebars ; Utils \ wp_register_unused_sidebar ( ) ; if ( ! array_key_exists ( $ sidebar_id , $ wp_registered_sidebars ) ) { WP_CLI :: error ( 'Invalid sidebar.' ) ; } }
Checks whether a sidebar is a valid sidebar

@param string $sidebar_id
Checks whether a sidebar is a valid sidebar