Make WordPress Core

Ticket #34960: 34960-fix-documentation.patch

File 34960-fix-documentation.patch, 1.2 KB (added by jrf, 9 years ago)
  • src/wp-includes/load.php

    From a43c57cfc9c6e4764917c3435797ef88608e7066 Mon Sep 17 00:00:00 2001
    From: jrfnl <github_nospam@adviesenzo.nl>
    Date: Thu, 10 Dec 2015 01:40:02 +0100
    Subject: [PATCH] Correct documentation for wp_debug_mode().
    
    ---
     src/wp-includes/load.php | 5 ++++-
     1 file changed, 4 insertions(+), 1 deletion(-)
    
    diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php
    index 9d247ba..4d112f2 100644
    a b function timer_stop( $display = 0, $precision = 3 ) { 
    257257 * Set PHP error reporting based on WordPress debug settings.
    258258 *
    259259 * Uses three constants: `WP_DEBUG`, `WP_DEBUG_DISPLAY`, and `WP_DEBUG_LOG`.
    260  * All three can be defined in wp-config.php, and by default are set to false.
     260 * All three can be defined in wp-config.php.
     261 * `WP_DEBUG` and `WP_DEBUG_LOG` are set to `false` by default.
     262 * `WP_DEBUG_DISPLAY` is set to `true` by default but this setting will
     263 * only have an effect when `WP_DEBUG` is also set to `true`.
    261264 *
    262265 * When `WP_DEBUG` is true, all PHP notices are reported. WordPress will also
    263266 * display internal notices: when a deprecated WordPress function, function