WP_Customize_Nav_Menus::make_auto_draft_status_previewable()
Make the auto-draft status protected so that it can be queried.
Description Description
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; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |