Title: code emoji script is adding to head
Last modified: July 17, 2020

---

# code emoji script is adding to head

 *  Resolved [wildernessdave](https://wordpress.org/support/users/wildernessdave/)
 * (@wildernessdave)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/code-emoji-script-is-adding-to-head/)
 * I just noticed that the urls in the code that wordpress is adding to display 
   emojies in the head section of pages on our website had very strange formatting.
   I am wondering if this is normal, or if I need to fix it in some way.
 * The URLs look like this https:\/\/s.w.org\/images\/core\/emoji\/12.0.0-1\/72×
   72\/
 * Why is it displaying \/ rather than /? Is this bad?
 * Here is the code
 *     ```
       <script>
       			window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/12.0.0-1\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/12.0.0-1\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/wildernessclassroom.org\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.4.2"}};
       			/*! This file is auto-generated */
       			!function(e,a,t){var r,n,o,i,p=a.createElement("canvas"),s=p.getContext&&p.getContext("2d");function c(e,t){var a=String.fromCharCode;s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,e),0,0);var r=p.toDataURL();return s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,t),0,0),r===p.toDataURL()}function l(e){if(!s||!s.fillText)return!1;switch(s.textBaseline="top",s.font="600 32px Arial",e){case"flag":return!c([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])&&(!c([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!c([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]));case"emoji":return!c([55357,56424,55356,57342,8205,55358,56605,8205,55357,56424,55356,57340],[55357,56424,55356,57342,8203,55358,56605,8203,55357,56424,55356,57340])}return!1}function d(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(i=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},o=0;o<i.length;o++)t.supports[i[o]]=l(i[o]),t.supports.everything=t.supports.everything&&t.supports[i[o]],"flag"!==i[o]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[i[o]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(r=t.source||{}).concatemoji?d(r.concatemoji):r.wpemoji&&r.twemoji&&(d(r.twemoji),d(r.wpemoji)))}(window,document,window._wpemojiSettings);
       		</script>
       ```
   
    -  This topic was modified 5 years, 10 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Move to Fixing WordPress and fortmatted
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcode-emoji-script-is-adding-to-head%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/code-emoji-script-is-adding-to-head/#post-13137416)
 * You are asking about a piece of Javascript, with the URL in a JSON string. Strings
   must have special characters escaped, although a slash isn’t typically a special
   character. But it looks the same in my test sites using 5.2.7 and 4.7.10.
 *  Thread Starter [wildernessdave](https://wordpress.org/support/users/wildernessdave/)
 * (@wildernessdave)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/code-emoji-script-is-adding-to-head/#post-13137869)
 * Thank you for clarifying that. I appreciate your help. I am just starting to 
   learn about Javascript.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘code emoji script is adding to head’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [wildernessdave](https://wordpress.org/support/users/wildernessdave/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/code-emoji-script-is-adding-to-head/#post-13137869)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
