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
This commit is contained in:
parent
2ae2b1269a
commit
dc4241986b
|
@ -2833,7 +2833,7 @@ function is_blog_user( $blog_id = 0 ) {
|
||||||
* @return false Always false.
|
* @return false Always false.
|
||||||
*/
|
*/
|
||||||
function debug_fopen( $filename, $mode ) {
|
function debug_fopen( $filename, $mode ) {
|
||||||
_deprecated_function( __FUNCTION__, 'error_log()' );
|
_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2850,7 +2850,7 @@ function debug_fopen( $filename, $mode ) {
|
||||||
* @param string $string Message to log.
|
* @param string $string Message to log.
|
||||||
*/
|
*/
|
||||||
function debug_fwrite( $fp, $string ) {
|
function debug_fwrite( $fp, $string ) {
|
||||||
_deprecated_function( __FUNCTION__, 'error_log()' );
|
_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
|
||||||
if ( ! empty( $GLOBALS['debug'] ) )
|
if ( ! empty( $GLOBALS['debug'] ) )
|
||||||
error_log( $string );
|
error_log( $string );
|
||||||
}
|
}
|
||||||
|
@ -2867,7 +2867,7 @@ function debug_fwrite( $fp, $string ) {
|
||||||
* @param mixed $fp Unused.
|
* @param mixed $fp Unused.
|
||||||
*/
|
*/
|
||||||
function debug_fclose( $fp ) {
|
function debug_fclose( $fp ) {
|
||||||
_deprecated_function( __FUNCTION__, 'error_log()' );
|
_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue