[wp-trac] [WordPress Trac] #21755: wp_insert_post() cannot set a page template from the frontend

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 31 18:04:38 UTC 2012


#21755: wp_insert_post() cannot set a page template from the frontend
--------------------------+------------------
 Reporter:  nacin         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Themes        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by nacin):

 P2 was able to trigger this, it seems:

 {{{
 Call to undefined function get_page_templates()
 File: wp-includes/post.php
 Line: 2779
 Source: wp-admin/admin-ajax.php?p2ajax=true
 }}}

 Not sure how this happened, though, because admin-ajax.php does include
 includes/admin.php, which includes includes/theme.php.

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


More information about the wp-trac mailing list