[wp-trac] [WordPress Trac] #40698: The function wp.emoji.parse is available only after another function is run

WordPress Trac noreply at wordpress.org
Thu Jun 27 02:21:44 UTC 2019


#40698: The function wp.emoji.parse is available only after another function is run
-------------------------------+------------------------------
 Reporter:  superpoincare      |       Owner:  (none)
     Type:  feature request    |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Emoji              |     Version:  4.7.4
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  javascript
-------------------------------+------------------------------
Changes (by pento):

 * keywords:   => reporter-feedback


Comment:

 Twemoji needs to be loaded for `wp.emoji.parse()` to work, hence why
 `load()` waits for `window.twemoji` to be defined before continuing.

 Can you give a more clearly defined example of why you need to use
 `parse()` earlier than when `load()` runs?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40698#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list