WordPress.org

Making WordPress.org

Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#5543 closed defect (fixed)

JavaScript error in the theme previewer

Reported by: poena Owned by: 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
12 months 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
12 months ago

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