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

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 12 19:35:53 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:  has-patch
--------------------------+-------------------------------------------------

Comment(by michaelh):

 Thanks both scribu and sivel.

 Applied 12966.2.diff and using

 {{{
 $output = 'objects'; // names or objects
 $post_types=get_post_types('',$output);
 }}}
 get this error:
 {{{
 Warning: array_intersect_assoc() [function.array-intersect-assoc]:
 Argument #2 is not an array in C:\xampp\htdocs\wp30\wp-
 includes\functions.php  on line 2929
 }}}

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


More information about the wp-trac mailing list