[wp-trac] [WordPress Trac] #30084: Theme Customizer seems to bypass all other hooks

WordPress Trac noreply at wordpress.org
Thu Oct 23 16:45:42 UTC 2014


#30084: Theme Customizer seems to bypass all other hooks
--------------------------------------+-----------------------------
 Reporter:  usability.idealist        |      Owner:
     Type:  defect (bug)              |     Status:  new
 Priority:  normal                    |  Milestone:  Awaiting Review
Component:  Themes                    |    Version:  4.0
 Severity:  normal                    |   Keywords:
  Focuses:  ui, docs, administration  |
--------------------------------------+-----------------------------
 I'm currently developing a theme which makes excessive use of the Theme
 Customization API. It also implements a Color Scheme system, which is
 aimed to be enhanced with plugins (read: LESS dynamic compilation).

 All is well when these plugins are activated, but NOT so, if they are
 disabled. The Theme Customizer seems to bypass all included classes, which
 are initialized via regular action hooks (read: init and
 after_setup_theme) and only runs "its" own hooks - which results in the
 following Fatal Error:


 {{{
  Fatal error: Call to undefined method
 cc2_ColorSchemes::get_color_schemes() in /opt/lampp/htdocs/wp-plain-
 vanilla/wp-content/themes/cc2/includes/schemes/libs/functions.php on line
 38
 }}}

 Current commit of the theme at Github: https://github.com/Themekraft
 /Custom-Community

 Normally, you might do an include check and if it fails, include the
 missing functions + classes, but as they are build with enhance-ability in
 mind (global variables, which will be rewritten if plugins are present),
 the non-firing hooks become a big nasty issue :-(

 A bit of documentation might help ironing out this problem; eg. something
 like a "Actions Run During an Theme Customizer Request" run-through in the
 Codex.

 Thanks in advance,
 cu, w0lf.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30084>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list