[wp-trac] [WordPress Trac] #59892: Deprecated print_emoji_styles produced during embed

WordPress Trac noreply at wordpress.org
Sun Nov 12 10:13:50 UTC 2023


#59892: Deprecated print_emoji_styles produced during embed
--------------------------+-----------------------------
 Reporter:  bobbingwide   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:  6.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 print_emoji_styles was deprecated in WordPress 6.4.0.
 When WP_DEBUG is true in the target server, then the deprecated message
 can be issued during embed processing. This is returned to the browser and
 displayed in both the block editor and the front end.

 Deprecated: Function print_emoji_styles is deprecated since version 6.4.0!
 Use wp_enqueue_emoji_styles instead. in wp-includes\functions.php on line
 6031

 === Trace output from the server

 \wp-content\plugins\oik-bwtrace\includes\bwtrace-actions.php(186:2)
 bw_trace_deprecated_function_run(1) 37 1 2023-11-12T09:59:28+00:00
 1.774142 0.000396 cf=embed_head,wp_print_styles,deprecated_function_run 21
 2 50331648/50331648 256M F=512 3 Array

     [0] => (string) "print_emoji_styles"
     [1] => (string) "wp_enqueue_emoji_styles"
     [2] => (string) "6.4.0"

 0. bw_lazy_backtrace \wp-content\plugins\oik-bwtrace\libs\bwtrace.php:108
 0
 1. bw_backtrace \wp-content\plugins\oik-bwtrace\includes\bwtrace-
 actions.php:187 0
 2.
 bw_trace_deprecated_function_run(print_emoji_styles,wp_enqueue_emoji_styles,6.4.0)
 \wp-includes\class-wp-hook.php:324 3
 3. apply_filters(,array) \wp-includes\class-wp-hook.php:348 2
 4. do_action(array) \wp-includes\plugin.php:517 1
 5.
 do_action(deprecated_function_run,print_emoji_styles,wp_enqueue_emoji_styles,6.4.0)
 \wp-includes\functions.php:5456 4
 6. _deprecated_function(print_emoji_styles,6.4.0,wp_enqueue_emoji_styles)
 \wp-includes\deprecated.php:5905 3
 7. print_emoji_styles() \wp-includes\class-wp-hook.php:324 1
 8. apply_filters(,array) \wp-includes\class-wp-hook.php:348 2
 9. do_action(array) \wp-includes\plugin.php:517 1
 10. do_action(wp_print_styles) \wp-includes\functions.wp-styles.php:57 1
 11. wp_print_styles() \wp-includes\class-wp-hook.php:324 1
 12. apply_filters(array,array) \wp-includes\class-wp-hook.php:348 2
 13. do_action(array) \wp-includes\plugin.php:517 1
 14. do_action(embed_head) \wp-includes\theme-compat\header-embed.php:29 1
 15. require_once(\wp-includes\theme-compat\header-embed.php) \wp-
 includes\template.php:790 1
 16. load_template(/wp-includes/theme-compat/header-embed.php,1,array) \wp-
 includes\template.php:725 3
 17. locate_template(array,1,1,array) \wp-includes\general-template.php:48
 4
 18. get_header(embed) \wp-includes\theme-compat\embed.php:13 1
 19. include(\wp-includes\theme-compat\embed.php) \wp-includes\template-
 loader.php:106 1
 20. require_once(\wp-includes\template-loader.php) \wp-blog-header.php:19
 1
 21. require(\wp-blog-header.php) \index.php:17 1


 === Steps to reproduce
 Using a fresh install

 1. Set WP_DEBUG to true in target server
 2. Add a post
 3. Embed the sample page  eg https://example.com/sample-page/
 4. The Deprecated message will appear in the block editor.
 5. Save
 6. View post
 7. When the embedding is run the deprecated message appears in the front
 end.

 === Notes
 - The workaround to set WP_DEBUG to false only works in the target server
 from which the content is being embedded.
 - For screen captures see
 https://github.com/bobbingwide/bobbingwide/issues/112

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59892>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list