%s', $plugin_file );
- return $actions;
-}, 10, 4 );
\ No newline at end of file
diff --git a/wp/wp-content/mu-plugins/pantheon-mu-plugin/.gitignore b/wp/wp-content/mu-plugins/pantheon-mu-plugin/.gitignore
deleted file mode 100644
index 9a4f9975..00000000
--- a/wp/wp-content/mu-plugins/pantheon-mu-plugin/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-# Ignore composer files.
-/vendor
-composer.lock
\ No newline at end of file
diff --git a/wp/wp-content/mu-plugins/pantheon-mu-plugin/CODEOWNERS b/wp/wp-content/mu-plugins/pantheon-mu-plugin/CODEOWNERS
deleted file mode 100644
index 4ca7a074..00000000
--- a/wp/wp-content/mu-plugins/pantheon-mu-plugin/CODEOWNERS
+++ /dev/null
@@ -1 +0,0 @@
-* @pantheon-systems/cms-platform
\ No newline at end of file
diff --git a/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/.editorconfig b/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/.editorconfig
deleted file mode 100644
index b634c4ce..00000000
--- a/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/.editorconfig
+++ /dev/null
@@ -1,16 +0,0 @@
-# editorconfig.org
-root = true
-
-[*]
-charset = utf-8
-end_of_line = lf
-insert_final_newline = true
-trim_trailing_whitespace = true
-indent_style = tab
-
-[{.jshintrc,*.json,*.yml}]
-indent_style = space
-indent_size = 2
-
-[{*.txt,wp-config-sample.php}]
-end_of_line = crlf
diff --git a/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/assets/css/return-to-pantheon-button.css b/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/assets/css/return-to-pantheon-button.css
deleted file mode 100644
index a47af41e..00000000
--- a/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/assets/css/return-to-pantheon-button.css
+++ /dev/null
@@ -1,63 +0,0 @@
-#login {
- width: 500px;
-}
-
-#return-to-pantheon {
- margin-bottom: 20px;
- display: flex;
- justify-content: space-between;
- align-items: center;
-}
-
-#return-to-pantheon .left {
- font-size: 16px;
- font-weight: 400;
- line-height: 1.4;
-}
-
-#return-to-pantheon a{
- display: flex;
- align-items: center;
- justify-content: space-between;
- color: #000000;
- padding: 5px 10px;
- background: #F8DD44;
- color: #000000 !important;
- text-decoration: none !important;
- font-size: 12px;
- text-align: center;
- border-radius: 10px;
- min-width: 130px
-}
-
-#return-to-pantheon a:hover {
- -webkit-transition: all 0.25s;
- -moz-transition: all 0.25s;
- transition: all 0.25s;
- background: #EFD01B;
- color: #333333 !important;
-}
-
- #return-to-pantheon .fist-icon {
- display: inline-block;
- width: 12px;
- margin-right: 5px;
- }
-
- @media (max-width: 499px) {
- #login {
- width: 320px;
- }
- #return-to-pantheon {
- flex-direction: column;
- }
-
- #return-to-pantheon .left {
- order: 2;
- }
-
- #return-to-pantheon .right {
- margin-bottom: 25px;
- order: 1;
- }
- }
\ No newline at end of file
diff --git a/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/assets/images/pantheon-fist-icon-black.svg b/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/assets/images/pantheon-fist-icon-black.svg
deleted file mode 100644
index 70a95a17..00000000
--- a/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/assets/images/pantheon-fist-icon-black.svg
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
\ No newline at end of file
diff --git a/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/assets/js/return-to-pantheon-button.js b/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/assets/js/return-to-pantheon-button.js
deleted file mode 100644
index 582b161b..00000000
--- a/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/assets/js/return-to-pantheon-button.js
+++ /dev/null
@@ -1,8 +0,0 @@
-jQuery(document).ready(function( $ ) {
-
- $('#return-to-pantheon')
- .detach()
- .prependTo('#loginform')
- .show();
-
-});
\ No newline at end of file
diff --git a/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/cli.php b/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/cli.php
deleted file mode 100644
index 8868406c..00000000
--- a/wp/wp-content/mu-plugins/pantheon-mu-plugin/inc/cli.php
+++ /dev/null
@@ -1,97 +0,0 @@
- (deprecated) or
- * wp pantheon cache set-maintenance-mode ' . esc_html__( 'Error:' ) . ' ' . sprintf(
- /* translators: %s: DO_NOT_UPGRADE_GLOBAL_TABLES */
- esc_html__( 'The constant %s cannot be defined when creating a network.' ),
- 'DO_NOT_UPGRADE_GLOBAL_TABLES'
- ) . '
' . esc_html__( 'Warning:' ) . ' ' . sprintf( - /* translators: %s: URL to Plugins screen. */ - wp_kses_post( __( 'Please deactivate your plugins before enabling the Network feature.' ) ), - esc_url_raw( admin_url( 'plugins.php?plugin_status=active' ) ) - ) . '
' . esc_html__( 'Once the network is created, you may reactivate your plugins.' ) . '
'; - echo ''; - require_once ABSPATH . 'wp-admin/admin-footer.php'; - die(); - } - - $hostname = get_clean_basedomain(); - $has_ports = strstr( $hostname, ':' ); - if ( ( false !== $has_ports && ! in_array( $has_ports, [ ':80', ':443' ], true ) ) ) { - echo '' . esc_html__( 'Error:' ) . ' ' . esc_html__( 'You cannot install a network of sites with your server address.' ) . '
' . sprintf(
- /* translators: %s: Port number. */
- esc_html__( 'You cannot use port numbers such as %s.' ),
- '' . $has_ports . '' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- ) . '
- ' . esc_html__( 'Caution:' ) . ' ';
- printf(
- /* translators: 1: wp-config.php, 2: web.config */
- esc_html__( 'You should back up your existing %1$s and %2$s files.' ),
- '' . $config_filename . '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- 'web.config'
- );
- } else {
- echo '' . esc_html__( 'Caution:' ) . ' ';
- printf(
- /* translators: %s: wp-config.php */
- esc_html__( 'You should back up your existing %s file.' ),
- '' . $config_filename . '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- );
- }
- ?>
-
- above the line reading %3$s:' ),
- '' . $config_filename . '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- '' . $location_of_wp_config . '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- // translators: This string should only be translated if wp-config-sample.php is localized.
- // You can check the localized release package or https://i18n.svn.wordpress.org//* ' . esc_html__( 'That’s all, stop editing! Happy publishing.' ) . ' */'
- );
- ?>
-
- ' . $config_filename . '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- );
- } else {
- printf(
- /* translators: %s: wp-config.php */
- esc_html__( 'These unique authentication keys are also missing from your %s file.' ),
- '' . $config_filename . '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- );
- }
- ?>
-
-
';
- printf(
- /* translators: 1: File name (.htaccess or web.config), 2: File path. */
- wp_kses_post( __( 'Add the following to your %1$s file in %2$s, replacing other WordPress rules:' ) ),
- 'web.config',
- '' . $home_path . '' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- );
- echo '
' . esc_html__( 'Warning:' ) . ' ' . esc_html__( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '
'; - } - ?> - - -'; - printf( - /* translators: %s: Documentation URL. */ - wp_kses_post( __( 'It seems your network is running with Nginx web server. Learn more about further configuration.' ) ), - 'https://wordpress.org/support/article/nginx/' - ); - echo '
'; - - else : // End $is_nginx. Construct an .htaccess file instead. - - $ms_files_rewriting = ''; - if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) { - $ms_files_rewriting = "\n# uploaded files\nRewriteRule ^"; - $ms_files_rewriting .= $subdir_match . "files/(.+) {$rewrite_base}" . WPINC . "/ms-files.php?file={$subdir_replacement_12} [L]" . "\n"; // phpcs:ignore Generic.Strings.UnnecessaryStringConcat.Found - } - - $htaccess_file = <<';
- printf(
- /* translators: 1: File name (.htaccess or web.config), 2: File path. */
- wp_kses_post( __( 'Add the following to your %1$s file in %2$s, replacing other WordPress rules:' ) ),
- '.htaccess',
- '' . $home_path . '' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
- );
- echo '
' . esc_html__( 'Warning:' ) . ' ' . esc_html__( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '
'; - } - ?> - - - - - - - - tables( 'ms_global' ) as $table => $prefixed_table ) { - $wpdb->$table = $prefixed_table; -} - -if ( ! network_domain_check() && ( ! defined( 'WP_ALLOW_MULTISITE' ) || ! WP_ALLOW_MULTISITE ) ) { - wp_die( - printf( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - /* translators: 1: WP_ALLOW_MULTISITE, 2: wp-config.php */ - esc_html__( 'You must define the %1$s constant as true in your %2$s file to allow creation of a Network.' ), - 'WP_ALLOW_MULTISITE',
- 'wp-config.php'
- )
- );
-}
-
-if ( is_network_admin() ) {
- // Used in the HTML title tag.
- $page_title = esc_html__( 'Network Setup' );
-} else {
- // Used in the HTML title tag.
- $page_title = __( 'Create a Network of WordPress Sites' );
-}
-
-$network_help = wp_kses_post( '' . __( 'This screen allows you to configure a network as having subdomains (site1.example.com) or subdirectories (example.com/site1). Subdomains require wildcard subdomains to be enabled in Apache and DNS records, if your host allows it.' ) . '
' . __( 'Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your installation. Fill out the network details, and click Install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).' ) . '
' . - '' . __( 'The next screen for Network Setup will give you individually-generated lines of code to add to your wp-config.php and .htaccess files. Make sure the settings of your FTP client make files starting with a dot visible, so that you can find .htaccess; you may have to create this file if it really is not there. Make backup copies of those two files.' ) . '
' . - '' . __( 'Add the designated lines of code to wp-config.php (just before /*...stop editing...*/) and .htaccess (replacing the existing WordPress rules).' ) . '
' . __( 'Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.' ) . '
' . - '' . __( 'The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with “/blog/” from the main site. This disabling will be addressed in a future version.' ) . '
' . - '' . __( 'For more information:' ) . '
' . - '' . __( 'Documentation on Creating a Network' ) . '
' . - '' . __( 'Documentation on the Network Screen' ) . '
' ); // phpcs:ignore PEAR.Functions.FunctionCallSignature.Indent - -get_current_screen()->add_help_tab( - [ - 'id' => 'network', - 'title' => __( 'Network' ), - 'content' => $network_help, - ] -); - -get_current_screen()->set_help_sidebar( - '' . __( 'For more information:' ) . '
' . - '' . __( 'Documentation on Creating a Network' ) . '
' . - '' . __( 'Documentation on the Network Screen' ) . '
' . - '' . __( 'Support' ) . '
' -); - -require_once ABSPATH . 'wp-admin/admin-header.php'; -?> -- Pantheon Multisite Configuration for documentation on how to finalize configuration of your site network.', 'pantheon' ) - ), - 'https://pantheon.io/docs/guides/multisite/config/#install-the-wordpress-site-network' - ); - ?> -
- - -- Contact Support.', 'pantheon' ) - ), 'https://pantheon.io/support' - ); - ?> -
- -' . esc_html__( 'Maximum time a cached page will be served. A higher TTL typically improves site performance.', 'pantheon-cache' ) . '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo ' ' . esc_html__( 'seconds', 'pantheon-cache' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - } - - /** - * Add the HTML for the maintenance mode field. - * - * @return void - */ - public function maintenance_mode_field() { - echo '' . esc_html__( 'Enable maintenance mode to work on your site while serving cached pages to:', 'pantheon-cache' ) . '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - } - - - /** - * Sanitize our options. - * - * @param array $in The POST values. - * @return array The sanitized POST values. - */ - public function sanitize_options( $in ) { - $out = $this->default_options; - - // Validate default_ttl. - $out['default_ttl'] = absint( $in['default_ttl'] ); - if ( $out['default_ttl'] < 60 && isset( $_ENV['PANTHEON_ENVIRONMENT'] ) && 'live' === $_ENV['PANTHEON_ENVIRONMENT'] ) { - $out['default_ttl'] = 60; - } - - if ( ! empty( $in['maintenance_mode'] ) - && in_array( $in['maintenance_mode'], [ 'anonymous', 'everyone' ], true ) ) { - $out['maintenance_mode'] = $in['maintenance_mode']; - } else { - $out['maintenance_mode'] = 'disabled'; - } - return $out; - } - - - /** - * Output the settings page. - * - * @return void - */ - public function view_settings_page() { - ?> -Learn more', 'pantheon-cache' ), 'https://docs.pantheon.io/guides/wordpress-configurations/wordpress-cache-plugin' ) ); ?>
Pantheon Advanced Page Cache.', 'pantheon-cache' ), 'https://docs.pantheon.io/guides/wordpress-configurations/wordpress-cache-plugin' ) ); ?>
- your Pantheon dashboard.', 'pantheon-systems' ), 'https://dashboard.pantheon.io/sites/' . $_ENV['PANTHEON_SITE'] ) ); - ?> -
-- -
- - -