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

Props subrataemfluence.
Fixes #44249.


Built from https://develop.svn.wordpress.org/trunk@44630


git-svn-id: http://core.svn.wordpress.org/trunk@44461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2019-01-17 00:49:48 +00:00
parent 67bec96f92
commit b158c806d1
2 changed files with 3 additions and 2 deletions

View File

@ -270,7 +270,8 @@ function get_plugin_files( $plugin ) {
*/ */
function get_plugins( $plugin_folder = '' ) { 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(); $cache_plugins = array();
} }

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.1-beta1-44629'; $wp_version = '5.1-beta1-44630';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.