From 52201b726d7ea1cd4ebd3d0d882868f436b5ee27 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Sun, 4 Oct 2020 19:56:33 +0200 Subject: [PATCH] Update WordPress 5.4.2 -> 5.5.1 --- Dockerfile | 2 +- .../etc/wp-mods/wp-admin/update-core.php.patch | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index e366a67..4be13a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG WP_VERSION=5.4.2 +ARG WP_VERSION=5.5.1 FROM wordpress:${WP_VERSION}-php7.4-fpm-alpine AS wordpress-builder USER root diff --git a/rootfs/etc/wp-mods/wp-admin/update-core.php.patch b/rootfs/etc/wp-mods/wp-admin/update-core.php.patch index 3cf0767..6b4b9e4 100644 --- a/rootfs/etc/wp-mods/wp-admin/update-core.php.patch +++ b/rootfs/etc/wp-mods/wp-admin/update-core.php.patch @@ -1,14 +1,14 @@ ---- update-core.php 2020-10-04 19:03:07.898527934 +0200 -+++ update-core-mod.php 2020-10-04 19:04:59.434908923 +0200 -@@ -915,6 +915,11 @@ +--- update-core.php 2020-10-04 19:51:51.874573636 +0200 ++++ update-core-mod.php 2020-10-04 19:53:36.705858923 +0200 +@@ -917,6 +917,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.' -+ ); ++ wp_die( ++ __( 'Sorry, you are not allowed to update this site.' ) . ++ ' Click here to learn why.' ++ ); + - check_admin_referer( 'upgrade-translations' ); + check_admin_referer( 'upgrade-core' ); - require_once ABSPATH . 'wp-admin/admin-header.php'; + // Do the (un)dismiss actions before headers, so that they can redirect.