WP_Customize_Nav_Menus::make_auto_draft_status_previewable()

Make the auto-draft status protected so that it can be queried.


Source

File: wp-includes/class-wp-customize-nav-menus.php

	public function make_auto_draft_status_previewable() {
		global $wp_post_statuses;
		$wp_post_statuses['auto-draft']->protected = true;
	}

Changelog

Changelog
Version Description
WP-4.7.0 Introduced.