From 0792fb37db657b3fb223ee7374b003461899d090 Mon Sep 17 00:00:00 2001 From: Mike Schroder Date: Thu, 25 Jun 2020 07:55:12 +0000 Subject: [PATCH] Upgrade/Install: Fix Yoda condition in `wp_opcache_invalidate()`. Fixes linting failure due to Yoda condition in `wp_opcache_invalidate()` following [48160]. See #36455. Built from https://develop.svn.wordpress.org/trunk@48161 git-svn-id: http://core.svn.wordpress.org/trunk@47930 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index ec01eb799a..1c650ec38e 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -2316,7 +2316,7 @@ function wp_opcache_invalidate( $filepath, $force = false ) { * - https://www.php.net/manual/en/reserved.variables.server.php * - https://core.trac.wordpress.org/ticket/36455 */ - if ( $can_invalidate === null ) { + if ( null === $can_invalidate ) { $can_invalidate = function_exists( 'opcache_invalidate' ) && ( ! ini_get( 'opcache.restrict_api' ) || stripos( realpath( $_SERVER['SCRIPT_FILENAME'] ), ini_get( 'opcache.restrict_api' ) ) === 0 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 50c2245815..75517b08bc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48160'; +$wp_version = '5.5-alpha-48161'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.