[wp-trac] [WordPress Trac] #49695: REST API check_template function can return false error

WordPress Trac noreply at wordpress.org
Sat Oct 24 14:10:40 UTC 2020


#49695: REST API check_template function can return false error
-------------------------------------------------+-------------------------
 Reporter:  Kipperlenny                          |       Owner:
                                                 |  TimothyBlynJacobs
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.6
Component:  REST API                             |     Version:  4.9
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  2nd-opinion dev-feedback needs-      |     Focuses:  rest-api
  patch needs-unit-tests                         |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):

 * owner:  (none) => TimothyBlynJacobs
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49301" 49301]:
 {{{
 #!CommitTicketReference repository="" revision="49301"
 REST API: Make template handling resilient against plugins setting the
 global post.

 Plugins shouldn't be setting the global post object during a REST API
 request, but if they did this could cause unexpected errors when creating
 a post with a template.

 Props Kipperlenny, TimothyBlynJacobs.
 Fixes #49695.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49695#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list