Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,24 @@ public function get_description() {
*/
public function get_plugin_data() {
include_once ABSPATH.'/wp-admin/includes/plugin.php';
$data = get_plugin_data( WP_PLUGIN_DIR.'/'.$this->config['slug'] );
$data = get_plugin_data($this->get_plugin_path());
return $data;
}


/**
* @since 1.6
* @return string containing path to this plugin
*/
public function get_plugin_path() {
if ( isset($this->config['plugin_path'] ) ) {
return $this->config['plugin_path'];
}

return WP_PLUGIN_DIR.'/'.$this->config['slug'];
}


/**
* Hook into the plugin update check and connect to GitHub
*
Expand Down