wordpress/patches/5.4.0/wp-admin-update-core.patch
2021-09-23 17:08:42 +02:00

15 lines
523 B
Diff

--- update-core.php 2021-09-23 17:06:40.030785998 +0200
+++ update-core.php 2021-09-23 17:07:06.824320534 +0200
@@ -801,6 +801,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.