Make WordPress Core

Changeset 58067


Ignore:
Timestamp:
04/30/2024 04:43:09 PM (5 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove extra conditional in get_plugins().

Follow-up to [1894], [5152], [55990].

Props abhijitrakas, mukesh27.
Fixes #44853.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r57773 r58067  
    320320                    closedir( $plugins_subdir );
    321321                }
    322             } else {
    323                 if ( str_ends_with( $file, '.php' ) ) {
    324                     $plugin_files[] = $file;
    325                 }
     322            } elseif ( str_ends_with( $file, '.php' ) ) {
     323                $plugin_files[] = $file;
    326324            }
    327325        }
Note: See TracChangeset for help on using the changeset viewer.