[wp-trac] [WordPress Trac] #33688: Emoji Javascript doesn't support HTTPS
WordPress Trac
noreply at wordpress.org
Wed Sep 2 15:29:14 UTC 2015
#33688: Emoji Javascript doesn't support HTTPS
--------------------------+-----------------------------
Reporter: trenzterra | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
My WordPress site is running on SSL courtesy of CloudFlare's Flexible SSL
feature.
For some reason, however, the emoji javascript code that is added to each
page assumes that your site URL starts with http and does not support
https. I have already changed my site URL to start with https:// but it
seems the emoji code does not detect this.
The javascript I'm referring to is this:
{{{
<script type="text/javascript">
window._wpemojiSettings =
{"baseUrl":"http:\/\/s.w.org\/images\/core\/emoji\/72x72\/","ext":".png","source":{"concatemoji":"http:\/\/www.websiteurl.com
\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.3"}};
!function(a,b,c){function d(a){var
c=b.createElement("canvas"),d=c.getContext&&c.getContext("2d");return
d&&d.fillText?(d.textBaseline="top",d.font="600 32px
Arial","flag"===a?(d.fillText(String.fromCharCode(55356,56812,55356,56807),0,0),c.toDataURL().length>3e3):(d.fillText(String.fromCharCode(55357,56835),0,0),0!==d.getImageData(16,16,1,1).data[0])):!1}function
e(a){var
c=b.createElement("script");c.src=a,c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var
f,g;c.supports={simple:d("simple"),flag:d("flag")},c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.simple&&c.supports.flag||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings);
</script>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33688>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list