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
This commit is contained in:
Sergey Biryukov 2017-10-07 00:39:41 +00:00
parent c02645bf13
commit 0d283b1f34
1 changed files with 3 additions and 3 deletions

View File

@ -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()' );
}
/**