Opened 8 years ago

Closed 6 years ago

#1678 closed defect (bug) (wontfix)

allow AJAX in theme preview

Reported by: progmastery's profile progmastery Owned by:
Milestone: Priority: normal
Component: Theme Directory Keywords: needs-patch ux-feedback needs-testing


AJAX does not work in themes in theme preview website.

I do not know why it is disabled, maybe for security reasons. But this makes many themes look broken.
Please allow AJAX requests.

Change History (3)

#1 @dd32
8 years ago

Hi and welcome to Trac!

Can you provide a link to an affected theme so we can see what can be done?

Ajax requests are not blocked as far as I'm aware, but due to how the previewer is built, it's entirely possible that it doesn't operate as expected.

#2 @progmastery
8 years ago

  1. AJAX search in menu bar.
  2. AJAX pagination, "next" button after first six posts.

  1. AJAX lightbox, 'zoom icon' on boat thumb.

  1. AJAX pagination, right circled arrow next to first three posts.

#3 @dd32
6 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

The reason for why this doesn't work as expected is that the previewed theme isn't used for wp-admin. For security purposes, I don't think I'm comfortable changing that at present.

It looks like the REST API works, so themes would probably be better using that regardless.

Due to the small number of themes this probably breaks, and the fact that the previewer breaks themes in all sorts of ways, I'm marking this as a wontfix, although with the caveat that hopefully one day with a previewer rewrite we'll get a real preview environment for it.

Note: See TracTickets for help on using tickets.