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
This commit is contained in:
Sergey Biryukov 2021-03-11 15:19:08 +00:00
parent efaa79d347
commit 88df1ef431
2 changed files with 3 additions and 3 deletions

View File

@ -293,7 +293,7 @@ function get_plugins( $plugin_folder = '' ) {
} }
// Files in wp-content/plugins directory. // Files in wp-content/plugins directory.
$plugins_dir = @ opendir( $plugin_root ); $plugins_dir = @opendir( $plugin_root );
$plugin_files = array(); $plugin_files = array();
if ( $plugins_dir ) { if ( $plugins_dir ) {
@ -303,7 +303,7 @@ function get_plugins( $plugin_folder = '' ) {
} }
if ( is_dir( $plugin_root . '/' . $file ) ) { if ( is_dir( $plugin_root . '/' . $file ) ) {
$plugins_subdir = @ opendir( $plugin_root . '/' . $file ); $plugins_subdir = @opendir( $plugin_root . '/' . $file );
if ( $plugins_subdir ) { if ( $plugins_subdir ) {
while ( ( $subfile = readdir( $plugins_subdir ) ) !== false ) { while ( ( $subfile = readdir( $plugins_subdir ) ) !== false ) {

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.