[wp-trac] [WordPress Trac] #45642: function is_child_theme() bug

WordPress Trac noreply at wordpress.org
Fri Dec 14 13:36:16 UTC 2018


#45642: function is_child_theme() bug
--------------------------+----------------------
 Reporter:  samet5        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Themes        |     Version:  5.0.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by swissspidy):

 * keywords:  ? =>
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hi, and welcome to WordPress Trac!

 Why do you think this needs to be changed?

 `TEMPLATEPATH !== STYLESHEETPATH` compares the two constants
 `TEMPLATEPATH` and `STYLESHEETPATH`, which can have any value.

 On the other hand, `'TEMPLATEPATH' !== 'STYLESHEETPATH'` compares the two
 strings "TEMPLATEPATH" and "STYLESHEETPATH", which will never be the same.

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


More information about the wp-trac mailing list