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

15 lines
524 B
Diff
Raw Normal View History

2021-09-01 21:03:25 +02:00
--- update-core.php 2021-09-01 20:18:43.638426162 +0200
+++ update-core.php 2021-09-01 20:21:05.189582541 +0200
@@ -1086,6 +1086,11 @@
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
}
2020-10-04 19:56:33 +02:00
+ 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.'
+ );
+
2020-10-04 19:56:33 +02:00
check_admin_referer( 'upgrade-core' );
2020-10-04 19:56:33 +02:00
// Do the (un)dismiss actions before headers, so that they can redirect.