[wp-trac] [WordPress Trac] #49168: is_post_type_archive( $post_types = '' ) doesn't work with underscore (_)

WordPress Trac noreply at wordpress.org
Sat Jan 11 04:46:52 UTC 2020


#49168: is_post_type_archive( $post_types = '' ) doesn't work with underscore (_)
--------------------------+------------------------------
 Reporter:  maurisrx      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  5.3.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  template
--------------------------+------------------------------
Changes (by maurisrx):

 * keywords:   => has-patch


Comment:

 I attached a patch that accepts both hyphen (-) and underscore (_) as
 function argument.

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


More information about the wp-trac mailing list