[wp-trac] [WordPress Trac] #36638: Detect broken URLs in the editor
WordPress Trac
noreply at wordpress.org
Wed Jul 20 16:52:47 UTC 2016
#36638: Detect broken URLs in the editor
--------------------------------------------+-----------------------
Reporter: iseulde | Owner: azaozz
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 4.6
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: needs-unit-tests needs-testing | Focuses: ui
--------------------------------------------+-----------------------
Comment (by afercia):
More related to `wp_remote_get()` but worth reminding some ISPs redirect
to a "courtesy page" (for marketing purposes!) when you request a not
existent URL. I usually change my DNS but I forgot to do that on the
machine I was using for testing. Thus, with my ISP default DNS, any not
existent URL I was intentionally typing was "good" and no error appeared.
Specifically, I was getting a 302 followed by a 200:
[[Image(https://cldup.com/ozZUcq4R8i.png)]]
I'm afraid there's no much we can do here other than blaming bad ISPs
practices :(
About the JS part, I'm not sure I understand the checks for `visible()`
for example in `setLinkError()` where `toolbar.visible()` is always false
for me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36638#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list