[wp-trac] [WordPress Trac] #25291: get_*_template() functions are way too presumptuos

WordPress Trac noreply at wordpress.org
Thu Sep 12 05:28:37 UTC 2013


#25291: get_*_template() functions are way too presumptuos
----------------------------+-----------------
 Reporter:  wonderboymusic  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  3.7
Component:  Template        |    Version:  1.5
 Severity:  normal          |   Keywords:
----------------------------+-----------------
 Most of the `get_*_template()` functions blindly trust that the result of
 `get_queried_object()` is perfect when non-null. This is not the case,
 unit tests are blowing up when in debug mode because the queried object
 does not contain properties of the assumed context.

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


More information about the wp-trac mailing list