[wp-trac] [WordPress Trac] #32458: Upgrade Error
WordPress Trac
noreply at wordpress.org
Thu Jun 18 01:54:49 UTC 2015
#32458: Upgrade Error
-----------------------------+------------------------------
Reporter: ramiy | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 4.2.2
Severity: normal | Resolution:
Keywords: | Focuses: administration
-----------------------------+------------------------------
Comment (by dd32):
After looking at an example of this, it's kind of weird.
The media templates are being output on the page by a plugin, and the
updater redirects before the page is fully loaded.
Because the page redirect occurs before the entire page is loaded, the
page load is severed, and the contents of the partially loaded `<script
type="text/html">` gets output on the page as the redirect occurs.
Several fixes:
1. Don't redirect, or redirect upon DOM ready instead
2. Output a `<div class="hidden">..` element last to hide all further
output
3. Plugins shouldn't enqueue stuff on all pages
The problem is that all 3 are not ideal, and don't provide a good UX.
We want to redirect the user ASAP, Outputting a div to hide all further
output feels hacky, and we can't control plugins..
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32458#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list