Skip to content

Commit

Permalink
Avoid PHP notice when WPMU Pretty Plugins is not installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Jan 25, 2016
1 parent 0efef27 commit d50b2a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ssw.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ public function ssw_find_plugins() {
if ($wpmu_pretty_plugins == true) {
$plugins_categories = get_site_option($this->wpmu_pretty_plugins_categories_site_option);
$all_plugins = get_site_option($this->wpmu_pretty_plugins_plugins_list_site_option);
if ( ! $all_plugins ) {
$all_plugins = array();
}

foreach ($all_plugins as $key => $value) {
if ( !function_exists( 'validate_plugin' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
Expand Down

0 comments on commit d50b2a7

Please sign in to comment.