From c60a436d89bb9169304bf3f6553d059ca4840825 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Sat, 10 Sep 2022 03:39:04 +0200 Subject: [PATCH] Update WordPress 6.0.1 -> 6.0.2 --- build/docker-bake.hcl | 12 ++++++++++-- patches/6.0.2/wp-admin-update-core.patch | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 patches/6.0.2/wp-admin-update-core.patch diff --git a/build/docker-bake.hcl b/build/docker-bake.hcl index db50e92..114dead 100644 --- a/build/docker-bake.hcl +++ b/build/docker-bake.hcl @@ -1,5 +1,5 @@ group "default" { - targets = ["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_6_2", "5_7_0", "5_7_1", "5_7_2", "5_8_0", "5_8_1", "5_8_2", "5_8_3", "5_9_0", "5_9_1", "5_9_2", "5_9_3", "6_0_0", "6_0_1"] + targets = ["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_6_2", "5_7_0", "5_7_1", "5_7_2", "5_8_0", "5_8_1", "5_8_2", "5_8_3", "5_9_0", "5_9_1", "5_9_2", "5_9_3", "6_0_0", "6_0_1", "6_0_2"] } target "build-dockerfile" { @@ -200,8 +200,16 @@ target "6_0_0" { target "6_0_1" { inherits = ["build-dockerfile", "build-platforms", "build-common"] - tags = ["docker.io/nlss/wordpress:6.0.1", "docker.io/nlss/wordpress:6.0", "docker.io/nlss/wordpress:latest"] + tags = ["docker.io/nlss/wordpress:6.0.1"] args = { WP_VERSION = "6.0.1" } +} + +target "6_0_2" { + inherits = ["build-dockerfile", "build-platforms", "build-common"] + tags = ["docker.io/nlss/wordpress:6.0.2", "docker.io/nlss/wordpress:6.0", "docker.io/nlss/wordpress:latest"] + args = { + WP_VERSION = "6.0.2" + } } \ No newline at end of file diff --git a/patches/6.0.2/wp-admin-update-core.patch b/patches/6.0.2/wp-admin-update-core.patch new file mode 100644 index 0000000..1258c2a --- /dev/null +++ b/patches/6.0.2/wp-admin-update-core.patch @@ -0,0 +1,14 @@ +--- update-core.php 2022-09-10 03:36:26.120553829 +0200 ++++ update-core.php 2022-09-10 03:37:29.638236917 +0200 +@@ -1096,6 +1096,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.