Add multiarch support and GitHub actions. Support even older versions with newest features

This commit is contained in:
xZero707
2021-09-22 23:46:14 +02:00
parent 566ec70c87
commit 827f27fb7f
12 changed files with 101 additions and 8 deletions

View File

@@ -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
}

View File

@@ -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.