Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Prevent PHP Warnings if no plugins or themes register any plugin directory #2

Merged
merged 1 commit into from about 2 years ago

2 participants

Julien Chaumond Christopher Davis
Julien Chaumond

No description provided.

Christopher Davis chrisguitarguy merged commit 0798a99 into from
Christopher Davis chrisguitarguy closed this
Christopher Davis
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 27, 2012
Julien Chaumond Update inc/admin.php 9972cd8
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  inc/admin.php
1  inc/admin.php
@@ -182,6 +182,7 @@ function scripts()
182 182
     function get_plugins()
183 183
     {
184 184
         global $wp_plugin_directories;
  185
+        if( empty( $wp_plugin_directories ) ) $wp_plugin_directories = array();
185 186
         foreach( array_keys( $wp_plugin_directories ) as $key )
186 187
         {
187 188
            $this->plugins[$key] = cd_apd_get_plugins( $key );
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.