This change log follows the Keep a Changelog standards. Versions follows Semantic Versioning.
- POSSIBLY BREAKING: Remove handling of custom post meta
- If you were relying on WPGHS to export custom post meta, use
wpghs_post_meta
filter &wpghs_pre_import_meta
to handle the meta yourself. See the documentation for more information.
- If you were relying on WPGHS to export custom post meta, use
- Switch from
sanitize_title
tosanitize_file_name
.- This should ensure better fidelity to the original filename.
- Don't export
post_date
if post isn't published.post_date
means the time the post was published. If it's not published, it shouldn't have apost_date
.
- Overwrite post_date from markdown, allowing remote user to modify publish date.
- Fix plugin slug (props @gmays)
- Fix messages (props @synchrophoto!)
- Fix Markdown when importing w/ Jetpack (props @lite3!)
- Fix bug in HTTP request on 4.6+
- Update dependencies
- Add GitHub link shortcode (props @jonocarroll!)
- Add boot hook (props @kennyfraser!)
- Fixed bug where post_meta with the same name as built-in meta keys were getting overwritten
- New filters:
wpghs_pre_fetch_all_supported
: Filter the query args before all supported posts are queried.wpghs_is_post_supported
: Determines whether the post is supported by importing/exporting.
- Bugfix: Set secret to password field. See #124.
- Bugfix: Fix error when importing branch-deletion webhooks.
- Bugfix: Fix "semaphore is locked" response from webhook. See #121.
- 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.
- Added Chinese translation (props @malsony!).
- Updated German translation (props @lsinger!).
- Expire semaphore lock to avoid permanently locked install.
- New WP-CLI command:
prime
: Forces WPGHS to fetch the latest commit and save it in the cache.
- New filters:
wpghs_sync_branch
: Branch the WordPress install should sync itself with.wpghs_commit_msg_tag
: Tag appended to the end of the commit message. Split from message with-
. Used to determine if commit has been synced already.
- These two new filters allow you to use WPGHS to keep multiple sites in sync.
- 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.
- Fix Database error handling
- Fix bug where WPGHS would interfere with other plugins' AJAX hooks.
- Fix transient key length to <40.
- Major rewrite of the plugin internals.
- Massively improved internal architecture.
- Improved speed.
- Upgraded caching implementation means updates happen faster.
- Line-endings are now normalize to Unix-style.
- New filter:
wpghs_line_endings
to set preferred line endings.
- New filter:
- New filter:
wpghs_pre_import_args
- Called before post arguments are passed for an imported post.
- New filter:
wpghs_pre_import_meta
- Called before post meta is imported from a post.
- BREAKING: Remove reference to global
$wpghs
variable.- Use
WordPress_GitHub_Sync::$instance
instead.
- Use
- Add German translation (props @lsinger).
- Update folder names to default to untranslated.
- Fix api bug where API call errors weren't getting kicked up to the calling method.
- Fix deleting bug where posts that weren't present in the repo were being added.
- Re-add validation of post before exporting.
- Fixed bug where all post types/statuses were being exported.
- Reverted busted SQL query
- 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.
- 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.
- Add WPGHS_Post as param to export content filter.
- Add filters for content on import and export.
- Hide password-protected posts from being exported to GitHub
- Create post slug if WordPress hasn't created it yet (affects draft exporting)
- Remove closure to enable PHP 5.2 compatibility (thanks @pdclark!)
- Initial release
- Supports full site sync, Markdown import/export, and custom post type & status support