Skip to content

Commit

Permalink
Merge pull request #181 from stellarwp/bugfix/disable-wp-automating-u…
Browse files Browse the repository at this point in the history
…pdating

Disable WP automatic updating out of the box
  • Loading branch information
lucatume authored Apr 8, 2024
2 parents 8afbe70 + fc230d7 commit 6d017ad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .env.slic
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,11 @@ SLIC_WP_HTTP_BLOCK_EXTERNAL=true
# This value will be assigned to the DISABLE_WP_CRON constant defined in the wp-config.php file.
# Set to `true` to disable the WordPress cron system, set to `false` to enable it.
SLIC_DISABLE_WP_CRON=true

# This value will be assigned to the WP_AUTO_UPDATE_CORE constant defined in the wp-config.php file.
# Set to `true` to allow automatic core updates to take place.
SLIC_WP_AUTO_UPDATE_CORE=false

# This value will be assigned to the AUTOMATIC_UPDATER_DISABLED constant defined in the wp-config.php file.
# Set to `false` to allow all types of automatic updates.
SLIC_AUTOMATIC_UPDATER_DISABLED=true
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [1.5.4] - 2024-04-05
* Change - Disable WordPress's automatic updating in slic containers via docker compose `WORDPRESS_CONFIG_EXTRA` defines. See comments in .env.slic to customize this behavior.

# [1.5.3] - 2024-04-05
* Change - Build `linux/arm64` images for the `slic` and `wordpress` containers to avoid issues when running `slic` on ARM machines.

Expand Down
2 changes: 2 additions & 0 deletions slic-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ services:
define( 'WP_DEBUG_LOG', true );
define( 'DISABLE_WP_CRON', ${SLIC_DISABLE_WP_CRON:-true} );
define( 'WP_HTTP_BLOCK_EXTERNAL', ${SLIC_WP_HTTP_BLOCK_EXTERNAL:-true} );
define( 'WP_AUTO_UPDATE_CORE', ${SLIC_WP_AUTO_UPDATE_CORE:-false} );
define( 'AUTOMATIC_UPDATER_DISABLED', ${SLIC_AUTOMATIC_UPDATER_DISABLED:-true} );
# Configure this to debug the tests with XDebug.
# Map the `_wordpress` directory to `/var/www/html' directory in your IDE of choice.
# Map the `_plugins` directory to `/plugins` directory in your IDE of choice.
Expand Down

0 comments on commit 6d017ad

Please sign in to comment.