diff --git a/github-checker.php b/github-checker.php index 213392a..c20965c 100644 --- a/github-checker.php +++ b/github-checker.php @@ -60,7 +60,6 @@ class PucGitHubChecker_3_0 extends PluginUpdateChecker_3_0 { $info = new PluginInfo_3_0(); $info->filename = $this->pluginFile; $info->slug = $this->slug; - $info->sections = array(); $this->setInfoFromHeader($this->getPluginHeader(), $info); @@ -382,9 +381,6 @@ class PucGitHubChecker_3_0 extends PluginUpdateChecker_3_0 { } } - if ( !isset($pluginInfo->sections) ) { - $pluginInfo->sections = array(); - } if ( !empty($fileHeader['Description']) ) { $pluginInfo->sections['description'] = $fileHeader['Description']; } diff --git a/plugin-update-checker.php b/plugin-update-checker.php index dfab6b1..11ead79 100644 --- a/plugin-update-checker.php +++ b/plugin-update-checker.php @@ -842,7 +842,7 @@ class PluginInfo_3_0 { public $slug; public $version; public $homepage; - public $sections; + public $sections = array(); public $banners; public $download_url;