From b8646bd85faf97c0c7446c4852505e1f57e5e6f5 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Thu, 23 Sep 2021 17:13:13 +0200 Subject: [PATCH] Restore support for WordPress 5.3.0 and 5.3.1 --- .github/workflows/image.yml | 2 +- patches/5.3.0/wp-admin-update-core.patch | 14 ++++++++++++++ patches/5.3.1/wp-admin-update-core.patch | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 patches/5.3.0/wp-admin-update-core.patch create mode 100644 patches/5.3.1/wp-admin-update-core.patch diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index cbc6d2a..dbaf45b 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -21,4 +21,4 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build image - run: build/bin/build "5.3.2 5.4.0 5.4.1 5.4.2 5.5.1 5.5.3 5.6.0 5.6.1 5.7.0 5.7.1 5.7.2 5.8.0" "5.8.0" \ No newline at end of file + run: build/bin/build "5.3.0 5.3.1 5.3.2 5.4.0 5.4.1 5.4.2 5.5.1 5.5.3 5.6.0 5.6.1 5.7.0 5.7.1 5.7.2 5.8.0" "5.8.0" \ No newline at end of file diff --git a/patches/5.3.0/wp-admin-update-core.patch b/patches/5.3.0/wp-admin-update-core.patch new file mode 100644 index 0000000..906b6f6 --- /dev/null +++ b/patches/5.3.0/wp-admin-update-core.patch @@ -0,0 +1,14 @@ +--- update-core.php 2021-09-23 17:11:30.239616145 +0200 ++++ update-core.php 2021-09-23 17:11:47.723078888 +0200 +@@ -797,6 +797,11 @@ + wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); + } + ++ wp_die( ++ __( 'Sorry, you are not allowed to update this site.' ) . ++ ' Click here to learn why.' ++ ); ++ + check_admin_referer( 'upgrade-core' ); + + // Do the (un)dismiss actions before headers, so that they can redirect. diff --git a/patches/5.3.1/wp-admin-update-core.patch b/patches/5.3.1/wp-admin-update-core.patch new file mode 100644 index 0000000..3e400e7 --- /dev/null +++ b/patches/5.3.1/wp-admin-update-core.patch @@ -0,0 +1,14 @@ +--- update-core.php 2021-09-23 17:09:32.192073263 +0200 ++++ update-core.php 2021-09-23 17:10:26.225808222 +0200 +@@ -797,6 +797,11 @@ + wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); + } + ++ wp_die( ++ __( 'Sorry, you are not allowed to update this site.' ) . ++ ' Click here to learn why.' ++ ); ++ + check_admin_referer( 'upgrade-core' ); + + // Do the (un)dismiss actions before headers, so that they can redirect.