Skip to content
Permalink
Browse files

Widgets: Replace http with https in the link placeholder widget image

The existing placeholder can make the user think that they must use http. We should encourage the use of https. 
Also, the block editor uses https for its placeholders. Let's add some consistency.

Props Chaton666, audrasjb, mukesh27.
Fixes #46320.


git-svn-id: https://develop.svn.wordpress.org/trunk@45777 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
whyisjake committed Aug 9, 2019
1 parent 4513c3f commit f88cc8aaa72ab16a2a6337bbbe603a4a7d603dff
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wp-includes/widgets/class-wp-widget-media-image.php
@@ -335,7 +335,7 @@ public function render_control_template_scripts() {
<# if ( data.url ) { #>
<p class="media-widget-image-link">
<label for="{{ elementIdPrefix }}linkUrl"><?php esc_html_e( 'Link to:' ); ?></label>
<input id="{{ elementIdPrefix }}linkUrl" type="text" class="widefat link" value="{{ data.link_url }}" placeholder="http://" pattern="((\w+:)?\/\/\w.*|\w+:(?!\/\/$)|\/|\?|#).*">
<input id="{{ elementIdPrefix }}linkUrl" type="text" class="widefat link" value="{{ data.link_url }}" placeholder="https://" pattern="((\w+:)?\/\/\w.*|\w+:(?!\/\/$)|\/|\?|#).*">
</p>
<# } #>
</script>

0 comments on commit f88cc8a

Please sign in to comment.
You can’t perform that action at this time.