[wp-trac] [WordPress Trac] #33190: Quicktags img button should have a protocol agnostic default value for src attribute
WordPress Trac
noreply at wordpress.org
Wed Jul 29 19:33:57 UTC 2015
#33190: Quicktags img button should have a protocol agnostic default value for src
attribute
--------------------------------------------+-----------------------------
Reporter: peterhartree | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.2.3
Severity: normal | Keywords:
Focuses: ui, javascript, administration |
--------------------------------------------+-----------------------------
'''Desired behaviour'''
After clicking quicktag img button, the prompt to "Enter the URL of the
image' should have a protocol agnostic default value (i.e. two forward
slashes or blank).
'''Actual behaviour'''
After clicking quick img button, the prompt to "Enter the URL of the
image' has a default value of 'http://'.
'''Reasoning'''
- The current behaviour encourages contributors to specify the http://
protocol in the image src. This leads to trouble for anyone running a
WordPress instance served over https://.
- If we wanted to aggressively push best practice (serve assets over
https:// wherever possible), the default value should be 'https://'.
Realistically though, I'd expect that to cause lots of trouble for people
who ''don't'' serve their sites over https://. So, defaulting to the
protocol agnostic pattern seems like the clear win here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33190>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list