[wp-trac] [WordPress Trac] #55015: Site Editor not working for TwentyTwentyTwo Child theme

WordPress Trac noreply at wordpress.org
Tue Feb 1 09:34:26 UTC 2022


#55015: Site Editor not working for TwentyTwentyTwo Child theme
-------------------------------------+---------------------
 Reporter:  mervinpraison            |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.9.1
Component:  Bundled Theme            |     Version:  5.9
 Severity:  major                    |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:
-------------------------------------+---------------------

Comment (by mervinpraison):

 Thanks for testing. Much appreciated.

 https://github.com/roots/bedrock/issues/74 only gives a solution for the
 front end but not for the WordPress site editor.

 I did try adding that code and still, the site editor is not working.
 Seems like the error is coming from the Javascript file. It's not
 returning `action.currentTheme.stylesheet`.


 {{{
 function reducer_currentTheme() {
   let state = arguments.length > 0 && arguments[0] !== undefined ?
 arguments[0] : undefined;
   let action = arguments.length > 1 ? arguments[1] : undefined;

   switch (action.type) {
     case 'RECEIVE_CURRENT_THEME':
       return action.currentTheme.stylesheet;
   }

   return state;
 }
 }}}


 Thanks

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


More information about the wp-trac mailing list