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

15 lines
540 B
Diff
Raw Normal View History

2024-05-12 23:37:14 +02:00
--- update-core.php 2024-05-12 23:33:34.405330883 +0200
+++ update-core.php 2024-05-12 23:33:54.551751539 +0200
@@ -1155,6 +1155,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" target="_blank">here</a> to learn why.'
+ );
+
check_admin_referer( 'upgrade-core' );
// Do the (un)dismiss actions before headers, so that they can redirect.