Skip to content

Commit 2ccdd7a

Browse files
committed
Merge branch 'develop' for v1.6.4
2 parents 6b6b128 + 8bd838e commit 2ccdd7a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/WordPress.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,17 @@ private function wp_download_and_config( $assoc_args ) {
11441144
}
11451145

11461146
// Added wp-config.php debug constants referred from https://codex.wordpress.org/Debugging_in_WordPress.
1147-
$extra_php = 'if ( isset( \$_SERVER[\'HTTP_X_FORWARDED_PROTO\'] ) && \$_SERVER[\'HTTP_X_FORWARDED_PROTO\'] == \'https\' ) {' . "\n" . ' \$_SERVER[\'HTTPS\'] = \'on\';' . "\n}\n\n" . '// Enable WP_DEBUG mode.' . "\n" . 'define( \'WP_DEBUG\', false );' . "\n\n" . '// Enable Debug logging to the /wp-content/debug.log file' . "\n" . 'define( \'WP_DEBUG_LOG\', false );' . "\n\n" . '// Disable display of errors and warnings.' . "\n" . 'define( \'WP_DEBUG_DISPLAY\', false );' . "\n" . '@ini_set( \'display_errors\', 0 );' . "\n\n" . '// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)' . "\n" . 'define( \'SCRIPT_DEBUG\', false );';
1147+
$extra_php = 'if ( isset( \$_SERVER[\'HTTP_X_FORWARDED_PROTO\'] ) && \$_SERVER[\'HTTP_X_FORWARDED_PROTO\'] == \'https\' ) {'
1148+
. "\n" . ' \$_SERVER[\'HTTPS\'] = \'on\';'
1149+
. "\n}\n\n"
1150+
. '// Enable Debug logging to the /wp-content/debug.log file'
1151+
. "\n" . 'define( \'WP_DEBUG_LOG\', false );' . "\n\n"
1152+
. '// Disable display of errors and warnings.'
1153+
. "\n" . 'define( \'WP_DEBUG_DISPLAY\', false );'
1154+
. "\n" . '@ini_set( \'display_errors\', 0 );' . "\n\n"
1155+
. '// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)'
1156+
. "\n" . 'define( \'SCRIPT_DEBUG\', false );';
1157+
11481158

11491159
if ( 'wp' !== $this->site_data['app_sub_type'] ) {
11501160
$extra_php .= "\n\n// Disable cookie domain.\ndefine( 'COOKIE_DOMAIN', false );";

0 commit comments

Comments
 (0)