From 5aa94866aecaaf5a4546c170cca32d6295418c46 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Thu, 23 Sep 2021 00:39:46 +0200 Subject: [PATCH] Add build for missing minor versions 5.7.1 and 5.7.2 --- .github/workflows/image.yml | 2 +- patches/5.7.1/wp-admin-update-core.patch | 14 ++++++++++++++ patches/5.7.2/wp-admin-update-core.patch | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 patches/5.7.1/wp-admin-update-core.patch create mode 100644 patches/5.7.2/wp-admin-update-core.patch diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index ec77b78..8ca927e 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.4.2 5.5.1 5.5.3 5.6.0 5.6.1 5.7.0 5.8.0" "5.8.0" \ No newline at end of file + run: build/bin/build "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.7.1/wp-admin-update-core.patch b/patches/5.7.1/wp-admin-update-core.patch new file mode 100644 index 0000000..1ceb5dd --- /dev/null +++ b/patches/5.7.1/wp-admin-update-core.patch @@ -0,0 +1,14 @@ +--- update-core.php 2021-03-19 19:23:29.391214787 +0100 ++++ update-core.php 2021-03-19 19:26:23.798962792 +0100 +@@ -1050,6 +1050,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.7.2/wp-admin-update-core.patch b/patches/5.7.2/wp-admin-update-core.patch new file mode 100644 index 0000000..f8e5fe0 --- /dev/null +++ b/patches/5.7.2/wp-admin-update-core.patch @@ -0,0 +1,14 @@ +--- update-core.php 2021-05-28 21:04:43.647362531 +0200 ++++ update-core.php 2021-05-28 21:05:44.224559161 +0200 +@@ -1050,6 +1050,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.