diff --git a/inc/network/includes-network.php b/inc/network/includes-network.php index a236a02..ba3a517 100644 --- a/inc/network/includes-network.php +++ b/inc/network/includes-network.php @@ -383,15 +383,13 @@ function network_step2( $errors = false ) { $home_path = 0 === strpos( $abspath_fix, $document_root_fix ) ? $document_root_fix . $base : get_home_path(); $wp_siteurl_subdir = preg_replace( '#^' . preg_quote( $home_path, '#' ) . '#', '', $abspath_fix ); $rewrite_base = ! empty( $wp_siteurl_subdir ) ? ltrim( trailingslashit( $wp_siteurl_subdir ), '/' ) : ''; - - $config_filename = 'wp-config.php'; $config_filename = apply_filters( 'pantheon.multisite.config_filename', 'wp-config.php' ); $location_of_wp_config = $abspath_fix; if ( ! file_exists( ABSPATH . $config_filename ) && file_exists( dirname( ABSPATH ) . '/' . $config_filename ) ) { $location_of_wp_config = dirname( $abspath_fix ); } - $location_of_wp_config = trailingslashit( $location_of_wp_config ); + $location_of_wp_config = apply_filters( 'pantheon.multisite.location_of_wp_config', trailingslashit( $location_of_wp_config ) ); // Wildcard DNS message. if ( is_wp_error( $errors ) ) { @@ -448,6 +446,8 @@ function network_step2( $errors = false ) {
/* ' . esc_html__( 'That’s all, stop editing! Happy publishing.' ) . ' */' ); ?>
@@ -457,9 +457,7 @@ function network_step2( $errors = false ) {
wp_kses_post( __( 'Add the following to your %1$s file in %2$s 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.' ) . ' */
'
+ $happy_publishing_msg // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
);
?>