Skip to content

Commit

Permalink
[CMSP-150] Update wp-config filename to use config/application.php (#…
Browse files Browse the repository at this point in the history
…125)

* Update wp-config filename to use config/application.php

* return early with filtered value

Co-authored-by: Phil Tyler <[email protected]>

---------

Co-authored-by: Phil Tyler <[email protected]>
  • Loading branch information
jazzsequence and pwtyler authored Jun 4, 2024
1 parent aa399f5 commit d7ee10d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web/app/mu-plugins/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@
$config_contents = str_replace( 'define(', 'Config::define(', $config_contents );
return $config_contents;
} );

/**
* Update the wp-config filename to use config/application.php.
*
* @return string
*/
add_filter( 'pantheon.multisite.config_filename', function ( $config_filename ) {
return 'config/application.php';
} );

0 comments on commit d7ee10d

Please sign in to comment.