Version Description
- Bug fix related to multisite plugin activation
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Share WordPress Plugin – AccessPress Social Share |
Version | 4.5.0 |
Comparing to | |
See all releases |
Code changes from version 4.4.9 to 4.5.0
- accesspress-social-share.php +18 -17
- inc/backend/save-settings.php +2 -1
- readme.txt +4 -1
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: 4.
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain: accesspress-social-share
|
@@ -101,33 +101,33 @@ if ( ! class_exists( 'APSS_Class' ) ) {
|
|
101 |
add_filter( 'admin_footer_text', array( $this, 'apss_admin_footer_text' ) );
|
102 |
add_action( 'admin_init', array( $this, 'redirect_to_site' ), 1 );
|
103 |
|
104 |
-
|
105 |
|
106 |
-
|
107 |
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
|
119 |
|
120 |
function apss_plugin_row_meta( $links, $file ){
|
121 |
if ( strpos( $file, 'accesspress-social-share.php' ) !== false ) {
|
122 |
-
|
123 |
'demo' => '<a href="'.APSS_LITE_DEMO.'" target="_blank"><span class="dashicons dashicons-welcome-view-site"></span>Live Demo</a>',
|
124 |
'doc' => '<a href="'.APSS_LITE_DOC.'" target="_blank"><span class="dashicons dashicons-media-document"></span>Documentation</a>',
|
125 |
'support' => '<a href="http://accesspressthemes.com/support" target="_blank"><span class="dashicons dashicons-admin-users"></span>Support</a>',
|
126 |
'pro' => '<a href="'.APSS_PRO_LINK.'" target="_blank"><span class="dashicons dashicons-cart"></span>Premium version</a>'
|
127 |
-
|
128 |
-
|
129 |
}
|
130 |
-
|
131 |
}
|
132 |
|
133 |
function apss_admin_footer_text( $text ){
|
@@ -152,7 +152,7 @@ if ( ! class_exists( 'APSS_Class' ) ) {
|
|
152 |
if ( is_multisite() ) {
|
153 |
$current_blog = $wpdb -> blogid;
|
154 |
// Get all blogs in the network and activate plugin on each one
|
155 |
-
$blog_ids = $wpdb -> get_col( "SELECT blog_id FROM $wpdb -> blogs" );
|
156 |
foreach ( $blog_ids as $blog_id ) {
|
157 |
switch_to_blog( $blog_id );
|
158 |
if ( ! get_option( APSS_SETTING_NAME ) ) {
|
@@ -172,6 +172,7 @@ if ( ! class_exists( 'APSS_Class' ) ) {
|
|
172 |
update_option( APSS_COUNT_TRANSIENTS, $apss_social_counts_transients );
|
173 |
}
|
174 |
}
|
|
|
175 |
}
|
176 |
|
177 |
//loads the text domain for translation
|
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: 4.5.0
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain: accesspress-social-share
|
101 |
add_filter( 'admin_footer_text', array( $this, 'apss_admin_footer_text' ) );
|
102 |
add_action( 'admin_init', array( $this, 'redirect_to_site' ), 1 );
|
103 |
|
104 |
+
}
|
105 |
|
106 |
+
function redirect_to_site(){
|
107 |
|
108 |
+
if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'apss-documentation' ) {
|
109 |
+
wp_redirect( APSS_LITE_DOC );
|
110 |
+
exit();
|
111 |
+
}
|
112 |
|
113 |
+
if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'apss-premium' ) {
|
114 |
+
wp_redirect( APSS_PRO_LINK );
|
115 |
+
exit();
|
116 |
+
}
|
117 |
+
}
|
118 |
|
119 |
|
120 |
function apss_plugin_row_meta( $links, $file ){
|
121 |
if ( strpos( $file, 'accesspress-social-share.php' ) !== false ) {
|
122 |
+
$new_links = array(
|
123 |
'demo' => '<a href="'.APSS_LITE_DEMO.'" target="_blank"><span class="dashicons dashicons-welcome-view-site"></span>Live Demo</a>',
|
124 |
'doc' => '<a href="'.APSS_LITE_DOC.'" target="_blank"><span class="dashicons dashicons-media-document"></span>Documentation</a>',
|
125 |
'support' => '<a href="http://accesspressthemes.com/support" target="_blank"><span class="dashicons dashicons-admin-users"></span>Support</a>',
|
126 |
'pro' => '<a href="'.APSS_PRO_LINK.'" target="_blank"><span class="dashicons dashicons-cart"></span>Premium version</a>'
|
127 |
+
);
|
128 |
+
$links = array_merge( $links, $new_links );
|
129 |
}
|
130 |
+
return $links;
|
131 |
}
|
132 |
|
133 |
function apss_admin_footer_text( $text ){
|
152 |
if ( is_multisite() ) {
|
153 |
$current_blog = $wpdb -> blogid;
|
154 |
// Get all blogs in the network and activate plugin on each one
|
155 |
+
$blog_ids = $wpdb -> get_col( "SELECT blog_id FROM {$wpdb -> blogs}" );
|
156 |
foreach ( $blog_ids as $blog_id ) {
|
157 |
switch_to_blog( $blog_id );
|
158 |
if ( ! get_option( APSS_SETTING_NAME ) ) {
|
172 |
update_option( APSS_COUNT_TRANSIENTS, $apss_social_counts_transients );
|
173 |
}
|
174 |
}
|
175 |
+
|
176 |
}
|
177 |
|
178 |
//loads the text domain for translation
|
inc/backend/save-settings.php
CHANGED
@@ -13,7 +13,8 @@ $apss_share_settings[ 'share_options' ] = $share_options;
|
|
13 |
$apss_share_settings[ 'social_icon_set' ] = sanitize_text_field($_POST[ 'apss_share_settings' ][ 'social_icon_set' ]);
|
14 |
$apss_share_settings[ 'share_positions' ] = sanitize_text_field($_POST[ 'apss_share_settings' ][ 'social_share_position_options' ]);
|
15 |
|
16 |
-
$apss_social_newtwork_order = explode( ',',
|
|
|
17 |
$social_network_array = array();
|
18 |
foreach ( $apss_social_newtwork_order as $social_network ) {
|
19 |
$social_network_array[ $social_network ] = (isset( $_POST[ 'social_networks' ][ $social_network ] )) ? 1 : 0;
|
13 |
$apss_share_settings[ 'social_icon_set' ] = sanitize_text_field($_POST[ 'apss_share_settings' ][ 'social_icon_set' ]);
|
14 |
$apss_share_settings[ 'share_positions' ] = sanitize_text_field($_POST[ 'apss_share_settings' ][ 'social_share_position_options' ]);
|
15 |
|
16 |
+
$apss_social_newtwork_order = explode( ',', sanitize_text_field($_POST[ 'apss_social_newtwork_order' ]) );
|
17 |
+
|
18 |
$social_network_array = array();
|
19 |
foreach ( $apss_social_newtwork_order as $social_network ) {
|
20 |
$social_network_array[ $social_network ] = (isset( $_POST[ 'social_networks' ][ $social_network ] )) ? 1 : 0;
|
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: 5.2.8
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -156,6 +156,9 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
|
|
156 |
|
157 |
== Changelog ==
|
158 |
|
|
|
|
|
|
|
159 |
= 4.4.9 =
|
160 |
* General bug fixes and refinement in code
|
161 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 5.2.8
|
7 |
+
Stable tag: 4.5.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
156 |
|
157 |
== Changelog ==
|
158 |
|
159 |
+
= 4.5.0 =
|
160 |
+
* Bug fix related to multisite plugin activation
|
161 |
+
|
162 |
= 4.4.9 =
|
163 |
* General bug fixes and refinement in code
|
164 |
|