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

15 lines
524 B
Diff
Raw Normal View History

2023-01-19 23:48:13 +01:00
--- update-core.php 2023-01-20 13:36:28.762998072 +0100
+++ update-core.php 2023-01-20 13:38:35.335180877 +0100
@@ -1096,6 +1096,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.