mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
When no plugins are active, return an empty array from validate_active_plugins()
.
This creates parity with the behavior of the function when plugins *are* active, but none are invalid. It also makes it possible to write unit tests for the function. Props sgrant. Fixes #30860. Built from https://develop.svn.wordpress.org/trunk@31003 git-svn-id: http://core.svn.wordpress.org/trunk@30984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9917758155
commit
95dba4c8c0
@ -884,7 +884,7 @@ function validate_active_plugins() {
|
||||
}
|
||||
|
||||
if ( empty( $plugins ) )
|
||||
return;
|
||||
return array();
|
||||
|
||||
$invalid = array();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user