Permalink
Browse files

more update fixes

  • Loading branch information...
1 parent 1c24473 commit 75b8bbdcafda1fb38a171a3365f47837640f5b36 @sc0ttkclark sc0ttkclark committed Apr 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 updater.php
View
@@ -46,7 +46,7 @@ public function __construct( $config = array() ) {
$defaults = array(
'slug' => plugin_basename(__FILE__),
- 'proper_folder_name' => plugin_basename(__FILE__),
+ 'proper_folder_name' => dirname( plugin_basename(__FILE__) ),
'api_url' => 'https://api.github.com/repos/jkudish/WordPress-GitHub-Plugin-Updater',
'raw_url' => 'https://raw.github.com/jkudish/WordPress-GitHub-Plugin-Updater/master',
'github_url' => 'https://github.com/jkudish/WordPress-GitHub-Plugin-Updater',
@@ -264,7 +264,7 @@ public function api_check( $transient ) {
if ( 1 === $update ) {
$response = new stdClass;
$response->new_version = $this->config['new_version'];
- $response->slug = $this->config['slug'];
+ $response->slug = $this->config['proper_folder_name'];
$response->url = $this->config['github_url'];
$response->package = $this->config['zip_url'];

0 comments on commit 75b8bbd

Please sign in to comment.