[wp-trac] [WordPress Trac] #12918: Register default post types before plugins and themes are loaded

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 8 15:40:57 UTC 2010


#12918: Register default post types before plugins and themes are loaded
--------------------------+-------------------------------------------------
 Reporter:  ryan          |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  Post Types    |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 Although correct behavior is to wait until init has fired to do anything,
 many themes call get_pages() prior to init.  If the default post types
 have not been registered yet, get_pages() will fail because the "page"
 post type is not present.  We can work around this in the same manner as
 we did for taxonomies by calling create_initial_post_types() before
 loading plugins and themes.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12918>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list