mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 12:01:51 +01:00
Update WordPress 5.6.2 -> 5.7.0
+ Small update of logic in 10-init-wordpress
This commit is contained in:
parent
15693d1627
commit
6878ea48e0
2
.github/workflows/image.yml
vendored
2
.github/workflows/image.yml
vendored
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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..."
|
||||
|
|
|
@ -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.' ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user