Update WordPress 5.6.2 -> 5.7.0

+ Small update of logic in 10-init-wordpress
This commit is contained in:
xZero707 2021-03-19 19:34:19 +01:00
parent 15693d1627
commit 6878ea48e0
4 changed files with 10 additions and 5 deletions

View File

@ -16,4 +16,4 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image
run: bin/build 5.6.2
run: bin/build 5.7.0

View File

@ -1,4 +1,4 @@
ARG WP_VERSION=5.6.2
ARG WP_VERSION=5.7.0
FROM wordpress:${WP_VERSION}-php7.4-fpm-alpine AS wordpress-builder
USER root

View File

@ -4,6 +4,11 @@ DISABLE_WP_UPDATES="${ENFORCE_DISABLE_WP_UPDATES:-true}"
# Designed to replace original, overcomplicated entrypoint script from official wordpress docker repository
# Why not use already available tools instead?!
# Removes trailing zero if found
# This is required due to inconsistencies between WodPress docker image versioning and wp-cli core download
# If patch version is 0, it is not considered by wp-cli.
WP_VERSION=$(echo "${WP_VERSION}" | sed --expression='s/.0//g');
function disableUpdatesPatch() {
if [ "${DISABLE_WP_UPDATES}" != "false" ]; then
echo "> Disabling WordPress updates..."

View File

@ -1,6 +1,6 @@
--- update-core.php 2021-01-11 20:24:28.531750881 +0100
+++ update-core.php 2021-01-11 20:27:11.200903166 +0100
@@ -1049,6 +1049,11 @@
--- 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.' ) );
}