Coding Standards: Remove an assignment in a conditional from `get_plugins()`.

Props subrataemfluence.
Fixes #44249.



git-svn-id: https://develop.svn.wordpress.org/trunk@44630 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2019-01-17 00:48:59 +00:00
parent 6f6b23dd70
commit 950562452a
1 changed files with 2 additions and 1 deletions

View File

@ -270,7 +270,8 @@ function get_plugin_files( $plugin ) {
*/
function get_plugins( $plugin_folder = '' ) {
if ( ! $cache_plugins = wp_cache_get( 'plugins', 'plugins' ) ) {
$cache_plugins = wp_cache_get( 'plugins', 'plugins' );
if ( ! $cache_plugins ) {
$cache_plugins = array();
}