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

WordPress Trac noreply at wordpress.org
Wed May 11 14:18:35 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 greenshady):

 Replying to [comment:5 sidati]:
 >
 > @greenshady Why not ? the child theme functions file is independent
 since its not related to parent function file, clearly because its called
 before it and the parent theme is developed before the child so clearly it
 will not counting on the child theme, so changing order will not make any
 difference.

 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.

 It'll also mean that any actions and filters (those with the same set
 priority) will now be executed first in the parent theme and last in the
 child theme, which will cause some issues for some.  Not as bad as the
 fatal error though.

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


More information about the wp-trac mailing list