WP_Customize_Nav_Menus::make_auto_draft_status_previewable()

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


Source 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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.