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

15 lines
524 B
Diff
Raw Normal View History

--- update-core.php 2021-01-11 20:24:28.531750881 +0100
+++ update-core.php 2021-01-11 20:27:11.200903166 +0100
@@ -1049,6 +1049,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.