Make WordPress Core

Ticket #41238: 41238.2.patch

File 41238.2.patch, 498 bytes (added by afzalmultani, 8 years ago)

global wp_post_statuses is used in make_auto_draft_status_previewable() function but it is not mentioned in the documentation of the function.

  • class-wp-customize-nav-menus.php

     
    11401140         * Make the auto-draft status protected so that it can be queried.
    11411141         *
    11421142         * @since 4.7.0
     1143         * @global array $wp_post_statuses Inserts new post status object into the list
    11431144         * @access public
    11441145         */
    11451146        public function make_auto_draft_status_previewable() {