From 5d983ec85b94c2fe33af8367059fd1e61f522bbe Mon Sep 17 00:00:00 2001 From: ryelle Date: Mon, 15 Mar 2021 19:51:09 +0000 Subject: [PATCH] Help/About: Run image comparison script after all assets have loaded. If the callback is called before the images are loaded, the comparison doesn't work. `wp.domReady` uses `DOMContentLoaded`, which does not guarantee that the images are loaded. This switches to use the `load` event, which waits for all resources to load. Props vladytimy, joyously, sergeybiryukov. Fixes #52758. Built from https://develop.svn.wordpress.org/trunk@50535 git-svn-id: http://core.svn.wordpress.org/trunk@50148 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/about.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/about.php b/wp-admin/about.php index 423df20198..9eaf4fdc88 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -239,7 +239,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';