Make WordPress Core

Ticket #5669: 5669.wp-settings.diff

File 5669.wp-settings.diff, 819 bytes (added by darkdragon, 17 years ago)

wp-settings.php based off of r6713

  • wp-settings.php

     
    185185                define('LANGDIR', WPINC . '/languages'); // no leading slash, no trailing slash
    186186}
    187187
     188if( defined('WP_DEBUG') ) {
     189        if( file_exists(ABSPATH . 'wp-content/debug.php') )
     190                include ABSPATH . 'wp-content/debug.php';
     191        else
     192                require ABSPATH . WPINC . '/debug.php';
     193}
     194
    188195/**
    189196 * Allows for the plugins directory to be moved from the default location.
    190197 *
     
    433440if ( file_exists(TEMPLATEPATH . '/functions.php') )
    434441        include(TEMPLATEPATH . '/functions.php');
    435442
     443if( defined('WP_DEBUG') )
     444        add_action('shutdown', 'wp_log_shutdown');
     445
    436446/**
    437447 * shutdown_action_hook() - Runs just before PHP shuts down execution.
    438448 *