[wp-trac] [WordPress Trac] #12966: get_post_types returning more than desired results

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 12 15:40:35 UTC 2010


#12966: get_post_types returning more than desired results
--------------------------+-------------------------------------------------
 Reporter:  michaelh      |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  3.0              
Component:  Template      |     Version:  3.0              
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------
Changes (by scribu):

  * keywords:  => reporter-feedback
  * milestone:  => 3.0


Comment:

 Please provide the output of this code:

 {{{
 global $wp_post_types;

 print_r($wp_post_types);

 $args=array(
   'public' => true,
   '_builtin' => false
 );
 $post_types = get_post_types($args, $output);

 print_r($post_types);
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12966#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list