[wp-trac] [WordPress Trac] #13084: Loading Parent Theme functions BEFORE Child Theme functions

WordPress Trac noreply at wordpress.org
Wed May 11 15:15:31 UTC 2016


#13084: Loading Parent Theme functions BEFORE Child Theme functions
--------------------------------+-----------------------
 Reporter:  oncletom            |       Owner:
     Type:  defect (bug)        |      Status:  reopened
 Priority:  normal              |   Milestone:
Component:  Themes              |     Version:  2.9.2
 Severity:  normal              |  Resolution:
 Keywords:  parent child theme  |     Focuses:
--------------------------------+-----------------------

Comment (by sidati):

 Replying to [comment:6 greenshady]:
 > Replying to [comment:5 sidati]:
 > It'll mean that any parent theme pluggable functions that have been
 overwritten in a child theme will cause a fatal error when the change is
 made.  Fatal errors are a showstopper.  That's why you could never change
 the load order.

 OK, Maybe we can introduce a `CONSTANT` in `wp-config.php` like
 `define('PARENT_FUNCTIONS_FIRST', false);` or maybe `option/theme-mode`
 for that.

 I know its not very URGENT or IMPORTANT request, but believe me its very
 useful and we will not break anything since the default value still
 child's functions.php first, what you think ?

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


More information about the wp-trac mailing list