wordpress/patches/5.3.1/wp-admin-update-core.patch

15 lines
522 B
Diff
Raw Normal View History

--- update-core.php 2021-09-23 17:09:32.192073263 +0200
+++ update-core.php 2021-09-23 17:10:26.225808222 +0200
@@ -797,6 +797,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.