From 0d283b1f3495a347fbc69130698c10ee7b3ea06d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 7 Oct 2017 00:39:41 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@41787 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/deprecated.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php index e29041843f..0b3ce28d33 100644 --- a/src/wp-includes/deprecated.php +++ b/src/wp-includes/deprecated.php @@ -2833,7 +2833,7 @@ function is_blog_user( $blog_id = 0 ) { * @return false Always false. */ function debug_fopen( $filename, $mode ) { - _deprecated_function( __FUNCTION__, 'error_log()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); return false; } @@ -2850,7 +2850,7 @@ function debug_fopen( $filename, $mode ) { * @param string $string Message to log. */ function debug_fwrite( $fp, $string ) { - _deprecated_function( __FUNCTION__, 'error_log()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); if ( ! empty( $GLOBALS['debug'] ) ) error_log( $string ); } @@ -2867,7 +2867,7 @@ function debug_fwrite( $fp, $string ) { * @param mixed $fp Unused. */ function debug_fclose( $fp ) { - _deprecated_function( __FUNCTION__, 'error_log()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); } /**