Making WordPress.org

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#5543 closed defect (bug) (fixed)

JavaScript error in the theme previewer

Reported by: poena's profile poena Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: Theme Directory Keywords:
Cc:

Description (last modified by SergeyBiryukov)

There is a JavaScript error in the theme previewer related to [10503]

(index):362 Uncaught TypeError: Cannot read property 'split' of null

Preview where the error is found:
https://wordpress.org/themes/sydney/

Change History (2)

#1 @dd32
4 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 10510:

Theme Preview: Use .href instead of .getAttribute('href') to avoid a javascript error when the attribute isn't set on the DOM element.

Props poena.
Fixes #5543.

#2 @SergeyBiryukov
4 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.