From 5e1a787329ef2663e8be9c0e9cf694598f3bc8fd Mon Sep 17 00:00:00 2001 From: xZero707 Date: Mon, 22 May 2023 23:19:23 +0200 Subject: [PATCH] Update WordPress 6.2.0 -> 6.2.1 --- build/docker-bake.hcl | 13 +++++++++++-- patches/6.2.1/wp-admin-update-core.patch | 14 ++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 patches/6.2.1/wp-admin-update-core.patch diff --git a/build/docker-bake.hcl b/build/docker-bake.hcl index 67f2f29..59c092c 100644 --- a/build/docker-bake.hcl +++ b/build/docker-bake.hcl @@ -10,7 +10,8 @@ group "default" { "6_0_3", "6_1_0", "6_1_1", - "6_2_0" + "6_2_0", + "6_2_1" ] } @@ -165,6 +166,14 @@ target "6_2_0" { inherits = ["build-dockerfile", "build-platforms", "build-common"] cache-from = get-cache-from("6.2.0") cache-to = get-cache-to("6.2.0") - tags = get-tags("6.2.0", ["6", "6.2", "latest"]) + tags = get-tags("6.2.0", []) args = get-args("6.2.0") } + +target "6_2_1" { + inherits = ["build-dockerfile", "build-platforms", "build-common"] + cache-from = get-cache-from("6.2.1") + cache-to = get-cache-to("6.2.1") + tags = get-tags("6.2.1", ["6", "6.2", "latest"]) + args = get-args("6.2.1") +} diff --git a/patches/6.2.1/wp-admin-update-core.patch b/patches/6.2.1/wp-admin-update-core.patch new file mode 100644 index 0000000..1498210 --- /dev/null +++ b/patches/6.2.1/wp-admin-update-core.patch @@ -0,0 +1,14 @@ +--- update-core.php 2023-05-22 23:14:59.041737945 +0200 ++++ update-core.php 2023-05-22 23:17:12.572278041 +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.