From 695976655e41886374c0618d0bb2c3f347bbc2f1 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Tue, 22 Mar 2022 19:25:03 +0100 Subject: [PATCH] Update WordPress 5.9.1 -> 5.9.2 --- build/docker-bake.hcl | 12 ++++++++++-- patches/5.9.2/wp-admin-update-core.patch | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 patches/5.9.2/wp-admin-update-core.patch diff --git a/build/docker-bake.hcl b/build/docker-bake.hcl index 4978419..996542f 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"] + 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"] } target "build-dockerfile" { @@ -168,8 +168,16 @@ target "5.9.0" { target "5.9.1" { inherits = ["build-dockerfile", "build-platforms", "build-common"] - tags = ["docker.io/nlss/wordpress:5.9.1", "docker.io/nlss/wordpress:5.9", "docker.io/nlss/wordpress:latest"] + tags = ["docker.io/nlss/wordpress:5.9.1"] args = { WP_VERSION = "5.9.1" } +} + +target "5.9.2" { + inherits = ["build-dockerfile", "build-platforms", "build-common"] + tags = ["docker.io/nlss/wordpress:5.9.2", "docker.io/nlss/wordpress:5.9", "docker.io/nlss/wordpress:latest"] + args = { + WP_VERSION = "5.9.2" + } } \ No newline at end of file diff --git a/patches/5.9.2/wp-admin-update-core.patch b/patches/5.9.2/wp-admin-update-core.patch new file mode 100644 index 0000000..b4c9d38 --- /dev/null +++ b/patches/5.9.2/wp-admin-update-core.patch @@ -0,0 +1,14 @@ +--- update-core.php 2022-03-22 19:22:19.921705536 +0100 ++++ update-core.php 2022-03-22 19:22:41.242213723 +0100 +@@ -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.