From 092e3c873e31e2b54cb4514f4bb6ee0f93ed4cac Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Sat, 17 Oct 2020 17:40:17 +0200
Subject: [PATCH] PHP 8.0: fix fatal error "Non-static method cannot be called
 statically"

---
 src/wp-includes/Text/Diff.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/wp-includes/Text/Diff.php b/src/wp-includes/Text/Diff.php
index f9452f2600..ab1c9a26dd 100644
--- a/src/wp-includes/Text/Diff.php
+++ b/src/wp-includes/Text/Diff.php
@@ -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');
-- 
2.28.0.windows.1

