[wp-trac] [WordPress Trac] #42673: Themes page throws console error when there is only one installed theme

WordPress Trac noreply at wordpress.org
Thu Nov 23 13:08:23 UTC 2017


#42673: Themes page throws console error when there is only one installed theme
--------------------------+-----------------------------
 Reporter:  kouratoras    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  4.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In WordPress 4.9 fresh installation, when there is only one theme
 available in `Themes` page, a console error is thrown.

 '''Steps to reproduce'''
 1. Install WordPress
 2. Go to `Themes` page
 3. Remove `TwentySixteen` and `TwentyFifteen`, so `TwentySeventeen` is the
 only installed theme
 4. Refresh the `Themes` page

 '''What I see:''' The page is throwing a console error:

 {{{
 Uncaught TypeError: Cannot read property 'doSearch' of undefined
     at Object.init (load-scripts.php?c=1&load[]=hoverIntent,common,admin-
 bar,thickbox,underscore,backbone,wp-util,wp-backbone,wp-a11y,customize-
 base,theme,updates,svg-painter,h&load[]=eartbeat,wp-auth-
 check&ver=4.9:355)
     at HTMLDocument.<anonymous> (load-
 scripts.php?c=1&load[]=hoverIntent,common,admin-
 bar,thickbox,underscore,backbone,wp-util,wp-backbone,wp-a11y,customize-
 base,theme,updates,svg-painter,h&load[]=eartbeat,wp-auth-
 check&ver=4.9:355)
     at i (load-scripts.php?c=1&load[]=jquery-core,jquery-
 migrate,utils&ver=4.9:2)
     at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load
 []=jquery-core,jquery-migrate,utils&ver=4.9:2)
     at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-
 migrate,utils&ver=4.9:2)
     at HTMLDocument.K (load-scripts.php?c=1&load[]=jquery-core,jquery-
 migrate,utils&ver=4.9:2)
 }}}

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


More information about the wp-trac mailing list