Social Share WordPress Plugin – AccessPress Social Share - Version 2.0.0

Version Description

  • Addition of the fixes for the special characters in post title.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Share WordPress Plugin – AccessPress Social Share
Version 2.0.0
Comparing to
See all releases

Code changes from version 1.1.9 to 2.0.0

accesspress-social-share.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
4
  Plugin name: AccessPress Social Share
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-share/
6
  Description: A plugin to add various social media shares to a site with dynamic configuration options.
7
- Version: 1.1.9
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:apss-share
@@ -30,7 +30,7 @@ if( !defined( 'APSS_LANG_DIR' ) ) {
30
  }
31
 
32
  if( !defined( 'APSS_VERSION' ) ) {
33
- define( 'APSS_VERSION', '1.1.9' );
34
  }
35
 
36
  if(!defined('APSS_TEXT_DOMAIN')){
@@ -114,7 +114,7 @@ if( !class_exists( 'APSS_Class' ) ){
114
  function apss_the_content_filter( $content ) {
115
  global $post;
116
  $post_content=$content;
117
- $title = get_the_title();
118
  $content=strip_shortcodes( strip_tags( get_the_content() ) );
119
  if(strlen($content) >= 100){
120
  $excerpt= substr($content, 0, 100).'...';
4
  Plugin name: AccessPress Social Share
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-share/
6
  Description: A plugin to add various social media shares to a site with dynamic configuration options.
7
+ Version: 2.0.0
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:apss-share
30
  }
31
 
32
  if( !defined( 'APSS_VERSION' ) ) {
33
+ define( 'APSS_VERSION', '2.0.0' );
34
  }
35
 
36
  if(!defined('APSS_TEXT_DOMAIN')){
114
  function apss_the_content_filter( $content ) {
115
  global $post;
116
  $post_content=$content;
117
+ $title = str_replace('+', '%20', urlencode($post->post_title));
118
  $content=strip_shortcodes( strip_tags( get_the_content() ) );
119
  if(strlen($content) >= 100){
120
  $excerpt= substr($content, 0, 100).'...';
inc/backend/main-page.php CHANGED
@@ -27,7 +27,7 @@
27
  <?php _e( 'AccessPress Social Share', APSS_TEXT_DOMAIN ); ?>
28
  </div>
29
  </div>
30
- <?php $options = get_option( APSS_SETTING_NAME );
31
  if(isset($_SESSION['apss_message'])){ ?>
32
 
33
  <div class="apss-message">
27
  <?php _e( 'AccessPress Social Share', APSS_TEXT_DOMAIN ); ?>
28
  </div>
29
  </div>
30
+ <?php $options = get_option( APSS_SETTING_NAME );
31
  if(isset($_SESSION['apss_message'])){ ?>
32
 
33
  <div class="apss-message">
inc/backend/save-settings.php CHANGED
@@ -3,7 +3,7 @@
3
  $apss_share_settings=array();
4
  if( $_POST['action']=='apss_save_options' ){
5
  $share_options = array();
6
- if(isset($_POST['apss_share_settings'])){
7
 
8
  foreach ( $_POST['apss_share_settings']['share_options'] as $key=>$value ){
9
  $share_options[]=$value;
3
  $apss_share_settings=array();
4
  if( $_POST['action']=='apss_save_options' ){
5
  $share_options = array();
6
+ if(isset($_POST['apss_share_settings']['share_options'])){
7
 
8
  foreach ( $_POST['apss_share_settings']['share_options'] as $key=>$value ){
9
  $share_options[]=$value;
inc/frontend/shortcode.php CHANGED
@@ -24,7 +24,7 @@ if( isset($attr['networks']) ){
24
  <div class='apss-social-share apss-theme-<?php echo $icon_set_value; ?> clearfix'>
25
  <?php
26
 
27
- $title=get_the_title();
28
  $content=strip_shortcodes(strip_tags(get_the_content()));
29
  if(strlen($content) >= 100){
30
  $excerpt= substr($content, 0, 100).'...';
@@ -154,7 +154,7 @@ foreach( $options['social_networks'] as $key=>$value ){
154
  case 'email':
155
  if ( strpos( $options['apss_email_body'], '%%' ) || strpos( $options['apss_email_subject'], '%%' ) ) {
156
  $link = 'mailto:?subject='.$options['apss_email_subject'].'&amp;body='.$options['apss_email_body'];
157
- $link = preg_replace( array( '#%%title%%#', '#%%siteurl%%#', '#%%permalink%%#', '#%%url%%#' ), array( get_the_title(), get_site_url(), get_permalink(), $url ), $link );
158
  }
159
  else {
160
  $link = 'mailto:?subject='.$options['apss_email_subject'].'&amp;body='.$options['apss_email_body'].": ".$url;
24
  <div class='apss-social-share apss-theme-<?php echo $icon_set_value; ?> clearfix'>
25
  <?php
26
 
27
+ $title=str_replace('+', '%20', urlencode($post->post_title));
28
  $content=strip_shortcodes(strip_tags(get_the_content()));
29
  if(strlen($content) >= 100){
30
  $excerpt= substr($content, 0, 100).'...';
154
  case 'email':
155
  if ( strpos( $options['apss_email_body'], '%%' ) || strpos( $options['apss_email_subject'], '%%' ) ) {
156
  $link = 'mailto:?subject='.$options['apss_email_subject'].'&amp;body='.$options['apss_email_body'];
157
+ $link = preg_replace( array( '#%%title%%#', '#%%siteurl%%#', '#%%permalink%%#', '#%%url%%#' ), array( $title, get_site_url(), get_permalink(), $url ), $link );
158
  }
159
  else {
160
  $link = 'mailto:?subject='.$options['apss_email_subject'].'&amp;body='.$options['apss_email_body'].": ".$url;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social share counter, social share, social media share, social network sha
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
- Stable tag: 1.1.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -131,6 +131,9 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
131
  6. Backend Miscellaneous Settings Section
132
 
133
  == Changelog ==
 
 
 
134
  = 1.1.9 =
135
  * Fixed the bug for saving settings of the share options for backend.
136
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.2
7
+ Stable tag: 2.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
131
  6. Backend Miscellaneous Settings Section
132
 
133
  == Changelog ==
134
+ = 2.0.0 =
135
+ * Addition of the fixes for the special characters in post title.
136
+
137
  = 1.1.9 =
138
  * Fixed the bug for saving settings of the share options for backend.
139