- forgot to include markdown.php - damn
- removed PHP Markdown Lib as it required PHP >= 5.3 and that's higher than required by WordPress core.
- switched from PHP Markdown Classic to the new PHP Markdown Lib to prevent collisions with other plugins, like Markdown On Save/Improved that also load PHP Markdown or PHP MarkdownExtra.
- fixed transient assignment for tags returning empty array.
- added transient for
CHANGES.md
to themes, should further cut down on API 403 errors. - new feature: theme rollback to previous version thanks @scarstens
- changed update methodology to use most recent tag first. If not tagged update from default branch.
- fixed download link to have correct base URI for Repository Contents API. Oops.
- rewrite of
GitHub_Update_GitHub_API::construct_download_link
to download zipball and provide appropriate endpoint.
- now saving transient and adding early return if API returns 404, this should speed up plugin when repo doesn't have
CHANGES.md
file and provide for early return in no tags have been created. If no tags have been created the API is still hit.
- moved action hook to remove
after_theme_row_$stylesheet
toclass GitHub_Theme_Updater
- added feature: if branch other than
master
is specified then tagged version will be ignored. This should make it much easier for beta testing to groups. See README.md - converted
class GitHub_Update_GitHub_API
to extension ofclass GitHub_Updater
- combined
description
andchangelog
to show in theme detail view. Rough formatting. Multisite only. - greatly simplified bug fix from 2.2.2, now using Themes API.
- bug fix for removing update notice for WP.org repo themes. Oops.
- minor code simplifications
- many thanks to @grappler for solving how to remove default
after_theme_row_$stylesheet
- moved check and load for
markdown.php
into only function that uses it. - minor README updates
- added abort if this plugin called directly
- added additional data to update available screen in both plugins and themes - issue #8
- removed requirement for tags in theme updating
- removed extra line endings from
remote_version
- added ratings function for creating star ratings based upon GitHub repo data.
- bring parts of
class GitHub_Theme_Updater
code on par withclass GitHub_Plugin_Updater
- added 'ghu-' prefix to transients
- ripped out theme rollback code. Moved to it's own branch on GitHub.
- add custom
after_theme_update_{$stylesheet}
detail.
- bug fix to return early from call to
plugins_api
if not getting plugin information. Fixes issue with Plugin Search.
- simplify check for
class Markdown_Parser
- refactor to pass
class GitHub_Update_GitHub_API
as class object. This should enable the creation of other class objects for Bitbucket, etc. - fix for setting branch when API not responding
- fix for setting download link when API not responding
- redesigned filter for setting transient timeout, but still not working (pull requests welcome)
- bug fix to not load
markdown.php
twice. Just in case it's loaded by some other plugin.
- rearranged where I put
GitHub Plugin URI
header, etc. in README and in this plugin. - minor spelling fixes
- renamed some functions for their hooks
- refactored
class GitHub_Plugin_Updater
andclass GitHub_Theme_Updater
to use stdClass objects - further refactored base class
GitHub_Updater
to contain renaming code and create stdClass objects for data. - added some ability to see changelog for GitHub hosted plugins.
- trying to follow WordPress Plugin Boilerplate, so renamed
classes
toincludes
- refactored putting all remote api calls in new
class GitHub_Plugin_Updater_API
. - Theme updating should now be able to have a specified branch.
- works on WordPress 3.8
- included Michel Fortin's PHP-Markdown for rendering
CHANGES.md
- added some variable declarations
- added early return in no GitHub sourced plugins or themes are identified
- refactored to use base class
GitHub_Updater
and extending classesGitHub_Plugin_Updater
andGitHub_Theme_Updater
.
- changed method of not overwriting extra headers to pass array.
- change
'...'
to…
in renaming notification - fix to not overwrite extra headers of other plugins.
- removed sorting option from
scandir
. Doesn't work with older versions of PHP < 5.4.0 - removed extraneous data from array in
multisite_get_themes
- updated the transient for themes
- replaced
readdir
withscandir
for creating WP_Theme object in multisite
- updated class-theme-updater.php to utilize WP_Theme class
- added method
get_remote_tag
to update plugins using tags or branch, depending upon which has greater version number. get_remote_tag
uses transient to limit calls to API- fix for
wp_get_themes
not working under plugin network activation on multisite installation. I recreatedwp_get_themes
by reading in the theme directory and adding the WP_Theme object ofwp_get_theme( 'dir_in_themes_dir' )
to an array.
- bug fix for undeclared variable $github_plugins
- Added separate method to parse plugin repo info from header
- Shortened GitHub Plugin URI to only use owner/repo
- Shortened GitHub Theme URI to only use owner/repo
- Lots of documentation and some bug fixes. Thanks @GaryJones
- Made version checking regex more compatible. Thanks @GaryJones
- Added ability to define branch to update.
- Refactored plugin/theme renaming code.
- Added
GitHub Branch
feature - Thanks @GaryJones - Trying to comply with WP Coding Standards.
- Major thanks to @GaryJones for all the pull requests and generally improving this project.
- Fixed a couple of non-fatal PHP errors. Thanks @jazzsequence
- Cleaned up readme's markdown.
- Fixed the README to more accurately reflect support for both plugins and themes.
- Fix for rename functions to be more precise, otherwise might rename wp.org repo themes.
- Simplify a couple of if statements.
- Fix to ignore renaming for wp.org plugins
- Sanity check for theme api uri
- Serialized WP_Theme object to search for added GitHub header, lots of help from Seth. No more
file_get_contents
. - Converted plugin class and added it to make joint plugin/theme updater.
- Code cleanup.
- Limit
file_get_contents
to 2000 bytes.
- Initial commit