Revisions: Explicitly declare the Text_Diff::_getTempDir() method as static.

This fixes a "Non-static method cannot be called statically" fatal error on PHP 8.

Props jrf.
Fixes #51559.
Built from https://develop.svn.wordpress.org/trunk@49185


git-svn-id: http://core.svn.wordpress.org/trunk@48947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-10-17 16:36:07 +00:00
parent 30d9432760
commit e2d191f710
2 changed files with 2 additions and 4 deletions

View File

@ -220,14 +220,12 @@ class Text_Diff {
/**
* Determines the location of the system temporary directory.
*
* @static
*
* @access protected
*
* @return string A directory name which can be used for temp files.
* Returns false if one could not be found.
*/
function _getTempDir()
static function _getTempDir()
{
$tmp_locations = array('/tmp', '/var/tmp', 'c:\WUTemp', 'c:\temp',
'c:\windows\temp', 'c:\winnt\temp');

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-49184';
$wp_version = '5.6-alpha-49185';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.