From efc105591b0b565550d4933d3e689bcc22744871 Mon Sep 17 00:00:00 2001 From: mAAdhaTTah Date: Wed, 4 Jan 2017 08:29:53 -0500 Subject: [PATCH] Bump version number & update CHANGELOG --- CHANGELOG.md | 48 ++++++++++++++++++++++++++-------------------- README.md | 20 +++++++++---------- wp-github-sync.php | 4 ++-- 3 files changed, 39 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 181cc43..f1dbe35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,24 +1,28 @@ ## Changelog ## -This change log follows the [Keep a Changelog standards]. Versions follows [Semantic Versioning]. +This change log follows the [Keep a Changelog standards][]. Versions follows [Semantic Versioning][]. -### [1.7.2] ### +### [1.7.5][] ### -* Fix messages (props @synchrophoto!) +* Fix plugin slug (props @gmays) + +### [1.7.2][] ### + +* Fix messages (props @synchrophoto!) * Fix Markdown when importing w/ Jetpack (props @lite3!) * Fix bug in HTTP request on 4.6+ * Update dependencies -### [1.7.0] ### +### [1.7.0][] ### * Add GitHub link shortcode (props @jonocarroll!) * Add boot hook (props @kennyfraser!) -### [1.6.1] ### +### [1.6.1][] ### * Fixed bug where post_meta with the same name as built-in meta keys were getting overwritten -### [1.6.0] ### +### [1.6.0][] ### * New filters: * `wpghs_pre_fetch_all_supported`: Filter the query args before all supported posts are queried. @@ -29,13 +33,13 @@ This change log follows the [Keep a Changelog standards]. Versions follows [Sema * Bugfix: Correctly display import/export messages in settings page. See [#127]. * Bugfix: Correctly set if post is new only when the matching ID is found in the database. -### [1.5.1] ### +### [1.5.1][] ### * Added Chinese translation (props @malsony!). * Updated German translation (props @lsinger!). * Expire semaphore lock to avoid permanently locked install. -### [1.5.0] ### +### [1.5.0][] ### * New WP-CLI command: * `prime`: Forces WPGHS to fetch the latest commit and save it in the cache. @@ -46,13 +50,13 @@ This change log follows the [Keep a Changelog standards]. Versions follows [Sema * This is an _advanced feature_. Your configuration may or may not be fully supported. **Use at your own risk.** * Eliminated some direct database calls in exchange for WP_Query usage. -### [1.4.1] ### +### [1.4.1][] ### * Fix Database error handling * Fix bug where WPGHS would interfere with other plugins' AJAX hooks. * Fix transient key length to <40. -### [1.4.0] ### +### [1.4.0][] ### * Major rewrite of the plugin internals. * *Massively* improved internal architecture. @@ -67,56 +71,56 @@ This change log follows the [Keep a Changelog standards]. Versions follows [Sema * BREAKING: Remove reference to global `$wpghs` variable. * Use `WordPress_GitHub_Sync::$instance` instead. -### [1.3.4] ### +### [1.3.4][] ### * Add German translation (props @lsinger). * Update folder names to default to untranslated. -### [1.3.3] ### +### [1.3.3][] ### * Fix api bug where API call errors weren't getting kicked up to the calling method. -### [1.3.2] ### +### [1.3.2][] ### * Fix deleting bug where posts that weren't present in the repo were being added. -### [1.3.1] ### +### [1.3.1][] ### * Re-add validation of post before exporting. * Fixed bug where all post types/statuses were being exported. * Reverted busted SQL query -### [1.3] ### +### [1.3][] ### * New Feature: Support importing posts from GitHub * New Feature: Support setting revision and new post users on import. * Note: There is a new setting, please selected a default/fallback user and saved the settings. -### [1.2] ### +### [1.2][] ### * New Feature: Support displaying an "Edit|View on GitHub" link. * Update translation strings and implement pot file generation. * Redirect user away from settings page page after the import/export process starts. * Fix autoloader to be PHP 5.2 compatible. -### [1.1.1] ### +### [1.1.1][] ### * Add WPGHS_Post as param to export content filter. -### [1.1.0] ### +### [1.1.0][] ### * Add filters for content on import and export. -### [1.0.2] ### +### [1.0.2][] ### * Hide password-protected posts from being exported to GitHub * Create post slug if WordPress hasn't created it yet (affects draft exporting) -### [1.0.1] ### +### [1.0.1][] ### * Remove closure to enable PHP 5.2 compatibility (thanks @pdclark!) -### [1.0.0] ### +### [1.0.0][] ### * Initial release * Supports full site sync, Markdown import/export, and custom post type & status support @@ -127,6 +131,8 @@ This change log follows the [Keep a Changelog standards]. Versions follows [Sema [#121]: https://github.com/mAAdhaTTah/wordpress-github-sync/issues/121 [#127]: https://github.com/mAAdhaTTah/wordpress-github-sync/issues/127 [Unreleased]: https://github.com/mAAdhaTTah/wordpress-github-sync + [1.7.5]: https://github.com/mAAdhaTTah/wordpress-github-sync/releases/tag/1.7.5 + [1.7.2]: https://github.com/mAAdhaTTah/wordpress-github-sync/releases/tag/1.7.2 [1.7.0]: https://github.com/mAAdhaTTah/wordpress-github-sync/releases/tag/1.7.0 [1.6.1]: https://github.com/mAAdhaTTah/wordpress-github-sync/releases/tag/1.6.1 [1.6.0]: https://github.com/mAAdhaTTah/wordpress-github-sync/releases/tag/1.6.0 diff --git a/README.md b/README.md index ef9e933..d9c8b57 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # WordPress <--> GitHub Sync # -**Contributors:** JamesDiGioia, benbalter +**Contributors:** JamesDiGioia, benbalter **Tags:** github, git, version control, content, collaboration, publishing **Requires at least:** 3.9 **Tested up to:** 4.7 -**Stable tag:** 1.7.4 +**Stable tag:** 1.7.5 **License:** GPLv2 **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -21,9 +21,9 @@ Well, now you can! Introducing [WordPress <--> GitHub Sync](https://github.com/m ### WordPress <--> GitHub Sync does three things: ### -1. Allows content publishers to version their content in GitHub, exposing "who made what change when" to readers -2. Allows readers to submit proposed improvements to WordPress-served content via GitHub's Pull Request model -3. Allows non-technical writers to draft and edit a Jekyll site in WordPress's best-of-breed editing interface +1. Allows content publishers to version their content in GitHub, exposing "who made what change when" to readers +2. Allows readers to submit proposed improvements to WordPress-served content via GitHub's Pull Request model +3. Allows non-technical writers to draft and edit a Jekyll site in WordPress's best-of-breed editing interface ### WordPress <--> GitHub sync might be able to do some other cool things: ### @@ -74,7 +74,7 @@ Install the plugin and activate it via WordPress's plugin settings page. ### Configuring the plugin ### -1. [Create a personal oauth token](https://github.com/settings/tokens/new) with the `public_repo` scope. If you'd prefer not to use your account, you can create another GitHub account for this. +1. [Create a personal oauth token](https://github.com/settings/tokens/new) with the `public_repo` scope. If you'd prefer not to use your account, you can create another GitHub account for this. 2. Configure your GitHub host, repository, secret (defined in the next step), and OAuth Token on the WordPress <--> GitHub sync settings page within WordPress's administrative interface. Make sure the repository has an initial commit or the export will fail. 3. Create a WebHook within your repository with the provided callback URL and callback secret, using `application/json` as the content type. To set up a webhook on GitHub, head over to the **Settings** page of your repository, and click on **Webhooks & services**. After that, click on **Add webhook**. 4. Click `Export to GitHub` or if you use WP-CLI, run `wp wpghs export all #` from the command line, where # = the user ID you'd like to commit as. @@ -122,14 +122,14 @@ In `wp-content`, create or open the `mu-plugins` folder and create a plugin file * Author URI: https://jamesdigioia.com/ * License: GPL2 */ - + add_filter('wpghs_whitelisted_post_types', function ($supported_post_types) { return array_merge($supported_post_types, array( // add your custom post types here 'gistpen' )); }); - + add_filter('wpghs_whitelisted_post_statuses', function ($supported_post_statuses) { return array_merge($supported_post_statuses, array( // additional statuses available: https://codex.wordpress.org/Post_Status @@ -169,7 +169,7 @@ If you wish to add either the bare URL or a link referencing the URL to an indiv The following optional attributes can also be included in the shortcode * `target=` - + `'view'` (default) the url used will be the *view* URL (`/blob/`). + + `'view'` (default) the url used will be the *view* URL (`/blob/`). + `'edit'` the url used will be the *edit* URL (`/edit/`). * `type=` + `'link'` (default) an anchor tag (``) with href set to the requested URL will be inserted. @@ -178,7 +178,7 @@ The following optional attributes can also be included in the shortcode + `''` (default) link text (where `type='link'`, ignored otherwise) will be set to 'View this post on GitHub'. + `'text'` link text (where `type='link'`, ignored otherwise) will be set to 'text' (the supplied text). -For example, +For example, `[wpghs target='view' type='link' text='Here is my post on GitHub']` will produce a HTML anchor tag with href set to the 'view' URL of the post on GitHub, and the link text set to 'Here is my post on GitHub', i.e. diff --git a/wp-github-sync.php b/wp-github-sync.php index d2a43be..3b824db 100644 --- a/wp-github-sync.php +++ b/wp-github-sync.php @@ -3,7 +3,7 @@ * Plugin Name: WordPress GitHub Sync * Plugin URI: https://github.com/mAAdhaTTah/wordpress-github-sync * Description: A WordPress plugin to sync content with a GitHub repository (or Jekyll site). - * Version: 1.7.4 + * Version: 1.7.5 * Author: James DiGioia, Ben Balter * Author URI: http://jamesdigioia.com * License: GPLv2 @@ -54,7 +54,7 @@ class WordPress_GitHub_Sync { * Current version * @var string */ - public static $version = '1.7.4'; + public static $version = '1.7.5'; /** * Controller object