From 88df1ef431dfe6d053d5cd73491b89a7e2d03ea4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 11 Mar 2021 15:19:08 +0000 Subject: [PATCH] Coding Standards: Consistently format `opendir()` calls in `get_plugins()`. Props sabernhardt, subrataemfluence. Fixes #44250. Built from https://develop.svn.wordpress.org/trunk@50522 git-svn-id: http://core.svn.wordpress.org/trunk@50135 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 5779ff4a3f..9079a5df66 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -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 ) { @@ -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 ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index e630774f3f..fa5a404c22 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50521'; +$wp_version = '5.8-alpha-50522'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.