Skip to content

Latest commit

 

History

History
190 lines (120 loc) · 6.81 KB

CHANGES.md

File metadata and controls

190 lines (120 loc) · 6.81 KB

ChangeLog for GitHub Updater

2.4.4

  • forgot to include markdown.php - damn

2.4.2

  • removed PHP Markdown Lib as it required PHP >= 5.3 and that's higher than required by WordPress core.

2.4.1

  • 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.

2.4.0

  • 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.

2.3.3

  • fixed download link to have correct base URI for Repository Contents API. Oops.

2.3.2

  • rewrite of GitHub_Update_GitHub_API::construct_download_link to download zipball and provide appropriate endpoint.

2.3.1

  • 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.

2.3.0

  • moved action hook to remove after_theme_row_$stylesheet to class 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 of class GitHub_Updater
  • combined description and changelog to show in theme detail view. Rough formatting. Multisite only.
  • greatly simplified bug fix from 2.2.2, now using Themes API.

2.2.2

  • bug fix for removing update notice for WP.org repo themes. Oops.

2.2.1

  • minor code simplifications
  • many thanks to @grappler for solving how to remove default after_theme_row_$stylesheet

2.2.0

  • 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 with class 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.

2.1.1

  • bug fix to return early from call to plugins_api if not getting plugin information. Fixes issue with Plugin Search.

2.1.0

  • 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)

2.0.1

  • bug fix to not load markdown.php twice. Just in case it's loaded by some other plugin.

2.0.0

  • 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 and class 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 to includes
  • 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

1.8.1

  • added some variable declarations
  • added early return in no GitHub sourced plugins or themes are identified

1.8.0

  • refactored to use base class GitHub_Updater and extending classes GitHub_Plugin_Updater and GitHub_Theme_Updater.

1.7.4

  • changed method of not overwriting extra headers to pass array.

1.7.3

  • change '...' to &#8230 in renaming notification
  • fix to not overwrite extra headers of other plugins.

1.7.2

  • 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

1.7.1

  • updated the transient for themes
  • replaced readdir with scandir for creating WP_Theme object in multisite

1.7.0

  • 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 recreated wp_get_themes by reading in the theme directory and adding the WP_Theme object of wp_get_theme( 'dir_in_themes_dir' ) to an array.

1.6.1

  • bug fix for undeclared variable $github_plugins

1.6.0

  • 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

1.5.0

  • 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.

1.4.3

  • Fixed a couple of non-fatal PHP errors. Thanks @jazzsequence

1.4.2

  • Cleaned up readme's markdown.

1.4.1

  • Fixed the README to more accurately reflect support for both plugins and themes.

1.4

  • Fix for rename functions to be more precise, otherwise might rename wp.org repo themes.

1.3

  • Simplify a couple of if statements.

1.2

  • Fix to ignore renaming for wp.org plugins

1.1

  • Sanity check for theme api uri

1.0

  • 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.

0.2

  • Code cleanup.
  • Limit file_get_contents to 2000 bytes.

0.1

  • Initial commit