[wp-trac] [WordPress Trac] #46958: Which of 'privacypolicy' or 'privacy_policy' is valid for get_query_template function?

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


#46958: Which of 'privacypolicy' or 'privacy_policy' is valid for
get_query_template function?
--------------------------+-----------------------------
 Reporter:  tmatsuur      |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.2
Component:  Privacy       |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:  template
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => 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/46958#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list