From ef272f47a3b383050381d7e78f86e2bea3f1b314 Mon Sep 17 00:00:00 2001 From: ryelle Date: Mon, 15 Mar 2021 19:57:05 +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. Merges [50535] to the 5.7 branch. Fixes #52758. Built from https://develop.svn.wordpress.org/branches/5.7@50536 git-svn-id: http://core.svn.wordpress.org/branches/5.7@50149 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';