[wp-trac] [WordPress Trac] #21213: Underscores get stripped out in $type ( get_query_template() )

WordPress Trac noreply at wordpress.org
Wed Apr 17 12:57:09 UTC 2019


#21213: Underscores get stripped out in $type ( get_query_template() )
-------------------------------------------------+-------------------------
 Reporter:  rinatkhaziev                         |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Themes                               |     Version:  2.5
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  needs-testing, has-patch, bulk-      |     Focuses:  template
  reopened                                       |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45231" 45231]:
 {{{
 #!CommitTicketReference repository="" revision="45231"
 Themes: Standardize on passing `frontpage` and `privacypolicy` as the
 `$type` parameter to `get_query_template()`.

 These keys are used in `{$type}_template_hierarchy` and `{$type}_template`
 filters.

 Previously, `front_page` and `privacy_policy` were passed, but
 `get_query_template()` stripped the underscores before passing the values
 to the filters.

 Props rinatkhaziev, tmatsuur, johnbillion.
 Fixes #21213, #46958.
 }}}

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


More information about the wp-trac mailing list