[wp-trac] [WordPress Trac] #37583: Shiny Updates: Enhance error reporting when response is invalid
WordPress Trac
noreply at wordpress.org
Fri Aug 5 19:29:33 UTC 2016
#37583: Shiny Updates: Enhance error reporting when response is invalid
-------------------------------------+-------------------------------------
Reporter: ocean90 | Owner: azaozz
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.6
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has- | Focuses: ui, javascript,
screenshots commit | administration
-------------------------------------+-------------------------------------
Comment (by ocean90):
In [changeset:"38206"]:
{{{
#!CommitTicketReference repository="" revision="38206"
Update/Install: Replace "error" and "-1" failure messages with a more
meaningful one.
* "-1" is an invalid nonce error, show 'An error has occurred. Please
reload the page and try again.'.
* "error" means that the connection to the server was lost, show
'Connection lost or the server is busy. Please try again later.'.
* Escape the message in `wp-updates-admin-notice` because the response may
include HTML.
* Remove HTML tags in `wp.updates.isValidResponse()` to make PHP's error
messages more readable.
Merge of [38205] to the 4.6 branch.
Props azaozz for review.
See #37583.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37583#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list