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:
parent
6f6b23dd70
commit
950562452a
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user