Make WordPress Core

Changeset 14631


Ignore:
Timestamp:
05/14/2010 01:12:45 PM (14 years ago)
Author:
nacin
Message:

Only show published items of custom post types in nav menu meta boxes. props duck_, fixes #13390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/nav-menu.php

    r14621 r14631  
    952952                'order' => 'DESC',
    953953            );
     954
     955        // custom post types should show only published items
     956        } else {
     957            $object->_default_query = array(
     958                'post_status' => 'publish',
     959            );
    954960        }
    955961    }
Note: See TracChangeset for help on using the changeset viewer.