Make WordPress Core


Ignore:
Timestamp:
05/17/2020 09:37:12 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix WPCS issues in plugin and theme upgrader classes.

See #49542.

File:
1 edited

Legend:

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

    r47414 r47814  
    554554        // If plugin is in its own directory, recursively delete the directory.
    555555        // Base check on if plugin includes directory separator AND that it's not the root plugin folder.
    556         if ( strpos( $plugin, '/' ) && $this_plugin_dir != $plugins_dir ) {
     556        if ( strpos( $plugin, '/' ) && $this_plugin_dir !== $plugins_dir ) {
    557557            $deleted = $wp_filesystem->delete( $this_plugin_dir, true );
    558558        } else {
Note: See TracChangeset for help on using the changeset viewer.