Skip to content

Commit

Permalink
[SITE-372] Filter subdirectory networks custom wp-content directory w…
Browse files Browse the repository at this point in the history
…arning (#144)

* port changes from #142

* adds a filter to turn off the message in the mu-plugin
requires mu-plugin update

* bump the filters.php version
  • Loading branch information
jazzsequence committed Jul 31, 2024
1 parent 36d2576 commit 53d8736
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion web/app/mu-plugins/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Pantheon WordPress Filters
* Plugin URI: https://github.com/pantheon-systems/wordpress-composer-managed
* Description: Filters for Composer-managed WordPress sites on Pantheon.
* Version: 1.1.0
* Version: 1.2.0
* Author: Pantheon Systems
* Author URI: https://pantheon.io/
* License: MIT License
Expand Down Expand Up @@ -32,6 +32,14 @@
return 'config/application.php';
} );

/**
* Disable the subdirectory networks custom wp-content directory warning.
*
* @since 1.2.0
* @return bool Default true. We set false to disable the warning.
*/
add_filter( 'pantheon.enable_subdirectory_networks_message', '__return_false' );

/**
* Correct core resource URLs for non-main sites in a subdirectory multisite network.
*
Expand Down

0 comments on commit 53d8736

Please sign in to comment.