Skip to content

Commit

Permalink
simplify the config_file_contents and add a docblock for the filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Apr 26, 2024
1 parent 183c9d3 commit 8485bc9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions inc/network/includes-network.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,14 @@ function network_step2( $errors = false ) {
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
<?php
$config_file_contents = ob_get_contents();
ob_end_clean();
$config_file_contents = apply_filters( 'pantheon.multisite.config_contents', $config_file_contents );
/**
* Filters the contents of the network configuration rules for WordPress configuration files.
*
* This allows this screen to be modified for different environments or configurations (e.g. Composer-based WordPress multisite).
*
* @param string $config_file_contents The contents of the network configuration rules.
*/
$config_file_contents = apply_filters( 'pantheon.multisite.config_contents', ob_get_clean() );
echo $config_file_contents; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</textarea>
Expand Down

0 comments on commit 8485bc9

Please sign in to comment.