Coding Standards: Remove extra conditional in `get_plugins()`.
Follow-up to [1894], [5152], [55990]. Props abhijitrakas, mukesh27. Fixes #44853. Built from https://develop.svn.wordpress.org/trunk@58067 git-svn-id: http://core.svn.wordpress.org/trunk@57532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c3961d849c
commit
8aa7eb7e16
|
@ -319,10 +319,8 @@ function get_plugins( $plugin_folder = '' ) {
|
|||
|
||||
closedir( $plugins_subdir );
|
||||
}
|
||||
} else {
|
||||
if ( str_ends_with( $file, '.php' ) ) {
|
||||
$plugin_files[] = $file;
|
||||
}
|
||||
} elseif ( str_ends_with( $file, '.php' ) ) {
|
||||
$plugin_files[] = $file;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.6-alpha-58065';
|
||||
$wp_version = '6.6-alpha-58067';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue