WordPress.org

Make WordPress Core

Ticket #48720: 48720.diff

File 48720.diff, 527 bytes (added by wpgurudev, 2 years ago)

Enable logging and script debugging if debug is enabled

  • wp-config-sample.php

    diff --git a/wp-config-sample.php b/wp-config-sample.php
    index 1a4e59243b..c73d04d5fc 100644
    a b $table_prefix = 'wp_'; 
    7878 * @link https://wordpress.org/support/article/debugging-in-wordpress/
    7979 */
    8080define( 'WP_DEBUG', false );
     81define( 'WP_DEBUG_LOG', ( true === WP_DEBUG ) ? true : false );
     82define( 'WP_DEBUG_DISPLAY', false );
     83define( 'SCRIPT_DEBUG', ( true === WP_DEBUG ) ? true : false );
    8184
    8285/* That's all, stop editing! Happy publishing. */
    8386