From dc4241986b16759e1dc2fbd793e25e8ca82ee100 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 7 Oct 2017 00:40:52 +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. Built from https://develop.svn.wordpress.org/trunk@41787 git-svn-id: http://core.svn.wordpress.org/trunk@41621 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/deprecated.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index e29041843f..0b3ce28d33 100644 --- a/wp-includes/deprecated.php +++ b/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()' ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 0d3a799f3c..ebe4044778 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-beta1-41786'; +$wp_version = '4.9-beta1-41787'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.