Skip to content

Commit

Permalink
Coding Standards: Consistently format opendir() calls in `get_plugi…
Browse files Browse the repository at this point in the history
…ns()`.

Props sabernhardt, subrataemfluence.
Fixes #44250.

git-svn-id: https://develop.svn.wordpress.org/trunk@50522 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Mar 11, 2021
1 parent e20b23d commit 4fadd1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-admin/includes/plugin.php
Expand Up @@ -293,7 +293,7 @@ function get_plugins( $plugin_folder = '' ) {
}

// Files in wp-content/plugins directory.
$plugins_dir = @ opendir( $plugin_root );
$plugins_dir = @opendir( $plugin_root );
$plugin_files = array();

if ( $plugins_dir ) {
Expand All @@ -303,7 +303,7 @@ function get_plugins( $plugin_folder = '' ) {
}

if ( is_dir( $plugin_root . '/' . $file ) ) {
$plugins_subdir = @ opendir( $plugin_root . '/' . $file );
$plugins_subdir = @opendir( $plugin_root . '/' . $file );

if ( $plugins_subdir ) {
while ( ( $subfile = readdir( $plugins_subdir ) ) !== false ) {
Expand Down

0 comments on commit 4fadd1f

Please sign in to comment.