From c57bc254b1fadcc2fb3357f7f25385f9473eed59 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 3 Jan 2017 11:56:54 -0600 Subject: [PATCH] prep for version 1.8.0 --- CHANGELOG.md | 17 ++++++++++++++++- README.md | 6 ++++-- ea-share-count.php | 16 ++++++++-------- 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 289243b..0163700 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,21 @@ # Change Log All notable changes to this project will be documented in this file, formatted via [this recommendation](http://keepachangelog.com/). +## [1.8.0] = 2017-01-03 +### Added +- Added `ea_share_count_display_wrap_format` filter, see #75 +- Allow unique styling for each instance, see #78 +- Added `ea_share_count_link_url` filter, see #80 + +### Fixed +- Update handling of Pinterest API response, see #64 +- Strip tags from title before using in URL, see #71 +- Simplified the image attribute, see #74 +- Ensure icon styling only targets icons, see #70 +- Removed nonce from email modal, see #69 +- Properly receive HTTP requests to prevent errors, see #68 +- Fix slim styling display, see #66 + ## [1.7.1] = 2016-08-24 ### Fixed - Issue with Facebook comment count parsing, see #63 @@ -173,4 +188,4 @@ All notable changes to this project will be documented in this file, formatted v - Inline documentation ## [1.0.0] - 2015-03-10 -- Initial Commit \ No newline at end of file +- Initial Commit diff --git a/README.md b/README.md index f8bf056..16edda0 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ **Contributors:** jaredatch, billerickson **Tags:** facebook, linkedin, pinterest, share, share buttons, social, stumbleupon, twitter **Requires at least:** 4.1 -**Tested up to:** 4.6.0 -**Stable tag:** 1.7.1 +**Tested up to:** 4.7.0 +**Stable tag:** 1.8.0 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -47,8 +47,10 @@ You can also use the ea_share() function to access any of the internal methods. There are also many filters in place to customize the plugin. [Here are some code snippets](http://www.billerickson.net/code-tag/ea-share-count/). * `ea_share_count_display` Customize what is displayed in the share count area. +* `ea_share_count_display_wrap_format` Customize the wrapping class and format of share count area. * `ea_share_count_theme_locations` Specify which hooks/filters are used for the "Before Content" and "After Content" share buttons. See [the code](https://github.com/jaredatch/EA-Share-Count/blob/master/includes/class-front.php#L38) for more information. * `ea_share_count_link` An array of elements used to form the share link. See [the code](https://github.com/jaredatch/EA-Share-Count/blob/master/includes/class-front.php#L442) for more information. +* `ea_share_count_link_url` The URL being shared * `ea_share_count_default_image` Default image used by Pinterest for generic URLs. * `ea_share_count_single_image` Image used by Pinterest for singular content (post, page...). Set to Featured Image by default. * `ea_share_count_site_url` What URL is used if you specify 'site' as the ID. Defaults to home_url(). diff --git a/ea-share-count.php b/ea-share-count.php index ac2d790..c1e4591 100644 --- a/ea-share-count.php +++ b/ea-share-count.php @@ -5,7 +5,7 @@ * GitHub URI: jaredatch/EA-Share-Count * Description: A lean plugin for quickly retrieving, caching, and displaying various social sharing counts and buttons. * Author: Bill Erickson & Jared Atchison - * Version: 1.7.1 + * Version: 1.8.0 * * EA Share Count is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ * @license GPL-2.0+ * @copyright Copyright (c) 2015 */ - + // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; @@ -52,7 +52,7 @@ final class EA_Share_Count { * @since 1.0.0 * @var string */ - private $version = '1.7.1'; + private $version = '1.8.0'; /** * Core instance @@ -77,8 +77,8 @@ final class EA_Share_Count { * @var object */ public $front; - - /** + + /** * Share Count Instance. * * @since 1.0.0 @@ -87,7 +87,7 @@ final class EA_Share_Count { public static function instance() { if ( ! isset( self::$instance ) && ! ( self::$instance instanceof EA_Share_Count ) ) { - + self::$instance = new EA_Share_Count; self::$instance->constants(); self::$instance->includes(); @@ -115,7 +115,7 @@ public function constants() { // Base name define( 'EA_SHARE_COUNT_BASE', plugin_basename( __FILE__ ) ); - + // Plugin root file define( 'EA_SHARE_COUNT_FILE', __FILE__ ); } @@ -137,7 +137,7 @@ public function includes() { /** * Bootstap. - * + * * @since 1.3.0 */ public function init() {