[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 07:51:01 UTC 2019


#46958: Which of 'privacypolicy' or 'privacy_policy' is valid for
get_query_template function?
--------------------------+-----------------------------
 Reporter:  tmatsuur      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Currently, 'privacy_policy' is used in the get_privacy_policy_template
 function.

 {{{
 return get_query_template( 'privacy_policy', $templates );
 }}}

 In contrast, the docs contains a 'privacypolicy' without the hyphen.

 Is the content of docs wrong?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46958>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list