Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2 from julien-c/master

Prevent PHP Warnings if no plugins or themes register any plugin directory
  • Loading branch information...
commit 0798a99aab9cd57a0526d5a1dd59a8595596a5f9 2 parents 5d6fb54 + 9972cd8
@chrisguitarguy authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  inc/admin.php
View
1  inc/admin.php
@@ -182,6 +182,7 @@ function scripts()
function get_plugins()
{
global $wp_plugin_directories;
+ if( empty( $wp_plugin_directories ) ) $wp_plugin_directories = array();
foreach( array_keys( $wp_plugin_directories ) as $key )
{
$this->plugins[$key] = cd_apd_get_plugins( $key );
Please sign in to comment.
Something went wrong with that request. Please try again.