Make WordPress Core

Changeset 44630


Ignore:
Timestamp:
01/17/2019 12:48:59 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Remove an assignment in a conditional from get_plugins().

Props subrataemfluence.
Fixes #44249.

File:
1 edited

Legend:

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

    r44593 r44630  
    271271function get_plugins( $plugin_folder = '' ) {
    272272
    273     if ( ! $cache_plugins = wp_cache_get( 'plugins', 'plugins' ) ) {
     273    $cache_plugins = wp_cache_get( 'plugins', 'plugins' );
     274    if ( ! $cache_plugins ) {
    274275        $cache_plugins = array();
    275276    }
Note: See TracChangeset for help on using the changeset viewer.