Make WordPress Core

Changeset 50522


Ignore:
Timestamp:
03/11/2021 03:17:56 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Consistently format opendir() calls in get_plugins().

Props sabernhardt, subrataemfluence.
Fixes #44250.

File:
1 edited

Legend:

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

    r50407 r50522  
    294294
    295295    // Files in wp-content/plugins directory.
    296     $plugins_dir  = @ opendir( $plugin_root );
     296    $plugins_dir  = @opendir( $plugin_root );
    297297    $plugin_files = array();
    298298
     
    304304
    305305            if ( is_dir( $plugin_root . '/' . $file ) ) {
    306                 $plugins_subdir = @ opendir( $plugin_root . '/' . $file );
     306                $plugins_subdir = @opendir( $plugin_root . '/' . $file );
    307307
    308308                if ( $plugins_subdir ) {
Note: See TracChangeset for help on using the changeset viewer.