WordPress.org

Make WordPress Core

Changeset 41787


Ignore:
Timestamp:
10/07/17 00:39:41 (2 months ago)
Author:
SergeyBiryukov
Message:

General: Correct _deprecated_function() calls in debug_fopen(), debug_fwrite(), and debug_fclose().

The second parameter is supposed to be the version number, the replacement function should be the third parameter.

Props milindmore22, jdgrimes.
Fixes #41094.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r41686 r41787  
    28342834 */ 
    28352835function debug_fopen( $filename, $mode ) { 
    2836     _deprecated_function( __FUNCTION__, 'error_log()' ); 
     2836    _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); 
    28372837    return false; 
    28382838} 
     
    28512851 */ 
    28522852function debug_fwrite( $fp, $string ) { 
    2853     _deprecated_function( __FUNCTION__, 'error_log()' ); 
     2853    _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); 
    28542854    if ( ! empty( $GLOBALS['debug'] ) ) 
    28552855        error_log( $string ); 
     
    28682868 */ 
    28692869function debug_fclose( $fp ) { 
    2870     _deprecated_function( __FUNCTION__, 'error_log()' ); 
     2870    _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); 
    28712871} 
    28722872 
Note: See TracChangeset for help on using the changeset viewer.