diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
commit | 0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch) | |
tree | e139a90049b158d4eed892d1662ee7f5c358fa31 /wp-admin/includes/plugin.php | |
parent | Adding upstream version 6.5.5+dfsg1. (diff) | |
download | wordpress-upstream.tar.xz wordpress-upstream.zip |
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | wp-admin/includes/plugin.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index bcae273..5b63855 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -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; } } @@ -2032,7 +2030,7 @@ function get_admin_page_parent( $parent_page = '' ) { * * @since 1.5.0 * - * @global string $title + * @global string $title The title of the current screen. * @global array $menu * @global array $submenu * @global string $pagenow The filename of the current screen. |