WordPress.org

Make WordPress Core

Changeset 48161


Ignore:
Timestamp:
06/25/2020 07:53:11 AM (6 weeks ago)
Author:
mikeschroder
Message:

Upgrade/Install: Fix Yoda condition in wp_opcache_invalidate().

Fixes linting failure due to Yoda condition in wp_opcache_invalidate() following [48160].

See #36455.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r48160 r48161  
    23172317     * - https://core.trac.wordpress.org/ticket/36455
    23182318     */
    2319     if ( $can_invalidate === null ) {
     2319    if ( null === $can_invalidate ) {
    23202320        $can_invalidate = function_exists( 'opcache_invalidate' ) &&
    23212321            ( ! ini_get( 'opcache.restrict_api' ) ||
Note: See TracChangeset for help on using the changeset viewer.