mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-11 06:12:40 +01:00
Add multiarch support and GitHub actions. Support even older versions with newest features
This commit is contained in:
@@ -12,7 +12,7 @@ WP_VERSION=$(echo "${WP_VERSION}" | sed --expression='s/.0//g');
|
||||
function disableUpdatesPatch() {
|
||||
if [ "${DISABLE_WP_UPDATES}" != "false" ]; then
|
||||
echo "> Disabling WordPress updates..."
|
||||
patch /var/www/html/wp-admin/update-core.php </etc/wp-mods/wp-admin/update-core.php.patch
|
||||
patch /var/www/html/wp-admin/update-core.php </etc/wp-mods/wp-admin/wp-admin-update-core.patch
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
--- 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.' ) );
|
||||
}
|
||||
|
||||
+ 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.
|
||||
Reference in New Issue
Block a user