From 3ccc91894b61ebe608ba73a9082e7a2cfd3e845f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 12 Aug 2020 15:05:08 +0000 Subject: [PATCH] Code Modernization: Remove `final` keyword from private methods. Declaring a `private` method as `final` is an oxymoron, as `private` methods cannot be overloaded anyway. Using `final private function...` will generate a warning in PHP 8. Props jrf. Fixes #50897. Built from https://develop.svn.wordpress.org/trunk@48788 git-svn-id: http://core.svn.wordpress.org/trunk@48550 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-session-tokens.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-session-tokens.php b/wp-includes/class-wp-session-tokens.php index 033add33c4..a1a779b236 100644 --- a/wp-includes/class-wp-session-tokens.php +++ b/wp-includes/class-wp-session-tokens.php @@ -66,7 +66,7 @@ abstract class WP_Session_Tokens { * @param string $token Session token to hash. * @return string A hash of the session token (a verifier). */ - final private function hash_token( $token ) { + private function hash_token( $token ) { // If ext/hash is not present, use sha1() instead. if ( function_exists( 'hash' ) ) { return hash( 'sha256', $token ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 60d476c15f..83b6f66802 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48783'; +$wp_version = '5.6-alpha-48788'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.