summaryrefslogtreecommitdiffstats
path: root/wp-admin/includes/plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/includes/plugin.php')
-rw-r--r--wp-admin/includes/plugin.php8
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.