[wp-trac] [WordPress Trac] #30459: is_child_theme() cannot be used during plugin activation as is

WordPress Trac noreply at wordpress.org
Tue May 21 18:39:50 UTC 2019


#30459: is_child_theme() cannot be used during plugin activation as is
-------------------------------------+------------------------------
 Reporter:  cais                     |       Owner:  (none)
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Themes                   |     Version:  3.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch bulk-reopened  |     Focuses:
-------------------------------------+------------------------------
Changes (by rramo012):

 * keywords:  has-patch, bulk-reopened => has-patch bulk-reopened


Comment:

 This is still a valid ticket as of WordPress 5.2. If this function is used
 within the setup_theme hook or earlier, the warning will be thrown.


 {{{
 Warning: Use of undefined constant TEMPLATEPATH - assumed 'TEMPLATEPATH'
 (this will throw an Error in a future version of PHP) in
 wp-includes\theme.php on line 152
 }}}

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


More information about the wp-trac mailing list