Skip to content

Commit

Permalink
Merge pull request #174 from stellarwp/1.5.1
Browse files Browse the repository at this point in the history
1.5.1
  • Loading branch information
lucatume committed Nov 20, 2023
2 parents b98954c + 45a72dd commit 2cc8263
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .env.slic
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,11 @@ WORDPRESS_HTTP_PORT=8888

# Directory the host machine's cache directory will be mapped to.
COMPOSER_CACHE_DIR=./.cache

# This value will be assigned to the WP_HTTP_BLOCK_EXTERNAL constant defined in the wp-config.php file.
# Set to `true` to block all external HTTP requests from WordPress, set to `false` to allow all requests.
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
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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.1] - 2023-11-20
* Change - Allow controlling the value of the `WP_HTTP_BLOCK_EXTERNAL` constant using the `SLIC_WP_HTTP_BLOCK_EXTERNAL` environment variable defined in the `.env.slic.run` configuration file; set to `true` by default to block all outgoing HTTP requests from WordPress.
* Change - Allow controlling the value of the `DISABLE_WP_CRON` constant using the `SLIC_DISABLE_WP_CRON` environment variable defined in the `.env.slic.run` configuration file; set to `true` by default to disable the WordPress cron system.

# [1.5.0] - 2023-09-06
* Fix - Added `extra_hosts:"${host:-host}:host-gateway"` to slick-stack.yml for Linux compatibility, enabling Xdebug without modifying the XDH environment variable. [Ref](https://github.com/docker/for-linux/issues/264#issuecomment-785247571).

Expand Down
4 changes: 2 additions & 2 deletions slic-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ services:
define( 'TRIBE_NO_FREEMIUS', true );
define( 'WP_DEBUG_DISPLAY', true );
define( 'WP_DEBUG_LOG', true );
define( 'DISABLE_WP_CRON', true );
define( 'WP_HTTP_BLOCK_EXTERNAL', true );
define( 'DISABLE_WP_CRON', ${SLIC_DISABLE_WP_CRON:-true} );
define( 'WP_HTTP_BLOCK_EXTERNAL', ${SLIC_WP_HTTP_BLOCK_EXTERNAL:-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
2 changes: 1 addition & 1 deletion slic.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
] );

$cli_name = 'slic';
const CLI_VERSION = '1.5.0';
const CLI_VERSION = '1.5.1';

// If the run-time option `-q`, for "quiet", is specified, then do not print the header.
if ( in_array( '-q', $argv, true ) || ( in_array( 'exec', $argv, true ) && ! in_array( 'help', $argv, true ) ) ) {
Expand Down

0 comments on commit 2cc8263

Please sign in to comment.