I recently decided to use GitHub for making updates to a custom theme. After following the instructions (to the letter) for setting up my theme to support this plugin, the updater still doesn’t work properly.
Any theme with a ‘GitHub URI’ displays as having an update available, regardless of the version installed vs. the latest GitHub version. Even if I do click to update, it fails. I even installed a theme that should work properly (https://github.com/danyork/barebones-wordpress) and even that fails.
Let’s get the stock questions out of the way:
1. Yes, I’ve installed the latest version (1.3.7) of the plugin.
2. Yes, the theme is set up properly (at least, according to the documentation).
So, has this plugin been tested for newer WordPress versions? I’m using 3.5.1 (latest). I see that the last compatible version is only 3.4.2 and hasn’t been updated since last July.
]]>fatal error on activation
Fatal error: include(): Cannot redeclare class wp_upgrader in /wp-content/plugins/theme-updater/assets.php on line 81
]]>What the people before me said.
]]>unfortunately this no longer works. bummer. trying to fork it with a working version now.
]]>After installing it, an alert appears to update all themes installed. It does not work as intended.
]]>Hello
When I upgrade the theme with the plugin, the theme folder name is changed to username-tagname-hash (which results in changing active theme settings to defaults).
note: I’m not getting an error message “Unable to rename downloaded theme”.
Any workaround this?
]]>get this error on activation:
Fatal error: Cannot redeclare class Plugin_Upgrader in /…/wp-admin/includes/class-wp-upgrader.php on line 631
Unfortunately Theme URI is not available via default get_theme_data(), which is probably for the best because I don’t want to conflict with standard wordpress conventions.
Couldn’t you do:
add_action( 'extra_theme_headers', 'frosty_extra_theme_headers' );
function frosty_extra_theme_headers( $headers ) {
$headers['Github Theme URI'] = 'Github Theme URI';
return $headers;
}
Then you can call:
$theme_data = get_theme_data( '/style.css' );
$theme_data['Github Theme URI']
]]>