wordpress/patches/5.8.2/wp-admin-update-core.patch
2021-11-19 00:54:14 +01:00

15 lines
524 B
Diff

--- update-core.php 2021-11-19 00:50:13.053965611 +0100
+++ update-core.php 2021-11-19 00:51:23.030501647 +0100
@@ -1086,6 +1086,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
+ wp_die(
+ __( 'Sorry, you are not allowed to update this site.' ) .
+ ' Click <a href="https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.