Ocean Social Sharing - Version 1.0.5.2

Version Description

  • Added: All sanitize_callback for the customizer options.
Download this release

Release Info

Developer oceanwp
Plugin Icon 128x128 Ocean Social Sharing
Version 1.0.5.2
Comparing to
See all releases

Code changes from version 1.0.5.1 to 1.0.5.2

Files changed (2) hide show
  1. ocean-social-sharing.php +10 -10
  2. readme.txt +5 -2
ocean-social-sharing.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin Name: Ocean Social Sharing
4
  * Plugin URI: https://oceanwp.org/extension/ocean-social-sharing/
5
  * Description: A simple plugin to add social share buttons to your posts.
6
- * Version: 1.0.5.1
7
  * Author: OceanWP
8
  * Author URI: https://oceanwp.org/
9
- * Requires at least: 4.0.0
10
- * Tested up to: 4.7.2
11
  *
12
  * Text Domain: ocean-social-sharing
13
  * Domain Path: /languages/
@@ -86,7 +86,7 @@ final class Ocean_Social_Sharing {
86
  $this->token = 'ocean-social-sharing';
87
  $this->plugin_url = plugin_dir_url( __FILE__ );
88
  $this->plugin_path = plugin_dir_path( __FILE__ );
89
- $this->version = '1.0.5.1';
90
 
91
  register_activation_hook( __FILE__, array( $this, 'install' ) );
92
 
@@ -225,7 +225,7 @@ final class Ocean_Social_Sharing {
225
  */
226
  $wp_customize->add_setting( 'oss_social_share_sites', array(
227
  'default' => array( 'twitter', 'facebook', 'google_plus', 'pinterest', 'linkedin' ),
228
- 'sanitize_callback' => false,
229
  ) );
230
 
231
  $wp_customize->add_control( new OceanWP_Customizer_Sortable_Control( $wp_customize, 'oss_social_share_sites', array(
@@ -248,7 +248,7 @@ final class Ocean_Social_Sharing {
248
  $wp_customize->add_setting( 'oss_social_share_heading', array(
249
  'default' => esc_html__( 'Please Share This', 'ocean-social-sharing' ),
250
  'transport' => 'postMessage',
251
- 'sanitize_callback' => false,
252
  ) );
253
 
254
  $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'oss_social_share_heading', array(
@@ -264,7 +264,7 @@ final class Ocean_Social_Sharing {
264
  */
265
  $wp_customize->add_setting( 'oss_social_share_twitter_handle', array(
266
  'default' => '',
267
- 'sanitize_callback' => false,
268
  ) );
269
 
270
  $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'oss_social_share_twitter_handle', array(
@@ -281,7 +281,7 @@ final class Ocean_Social_Sharing {
281
  $wp_customize->add_setting( 'oss_sharing_borders_color', array(
282
  'default' => '#e9e9e9',
283
  'transport' => 'postMessage',
284
- 'sanitize_callback' => false,
285
  ) );
286
 
287
  $wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'oss_sharing_borders_color', array(
@@ -297,7 +297,7 @@ final class Ocean_Social_Sharing {
297
  $wp_customize->add_setting( 'oss_sharing_icons_bg', array(
298
  'default' => '#ffffff',
299
  'transport' => 'postMessage',
300
- 'sanitize_callback' => false,
301
  ) );
302
 
303
  $wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'oss_sharing_icons_bg', array(
@@ -313,7 +313,7 @@ final class Ocean_Social_Sharing {
313
  $wp_customize->add_setting( 'oss_sharing_icons_color', array(
314
  'default' => '#bbbbbb',
315
  'transport' => 'postMessage',
316
- 'sanitize_callback' => false,
317
  ) );
318
 
319
  $wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'oss_sharing_icons_color', array(
3
  * Plugin Name: Ocean Social Sharing
4
  * Plugin URI: https://oceanwp.org/extension/ocean-social-sharing/
5
  * Description: A simple plugin to add social share buttons to your posts.
6
+ * Version: 1.0.5.2
7
  * Author: OceanWP
8
  * Author URI: https://oceanwp.org/
9
+ * Requires at least: 4.5.0
10
+ * Tested up to: 4.8
11
  *
12
  * Text Domain: ocean-social-sharing
13
  * Domain Path: /languages/
86
  $this->token = 'ocean-social-sharing';
87
  $this->plugin_url = plugin_dir_url( __FILE__ );
88
  $this->plugin_path = plugin_dir_path( __FILE__ );
89
+ $this->version = '1.0.5.2';
90
 
91
  register_activation_hook( __FILE__, array( $this, 'install' ) );
92
 
225
  */
226
  $wp_customize->add_setting( 'oss_social_share_sites', array(
227
  'default' => array( 'twitter', 'facebook', 'google_plus', 'pinterest', 'linkedin' ),
228
+ 'sanitize_callback' => 'oceanwp_sanitize_multi_choices',
229
  ) );
230
 
231
  $wp_customize->add_control( new OceanWP_Customizer_Sortable_Control( $wp_customize, 'oss_social_share_sites', array(
248
  $wp_customize->add_setting( 'oss_social_share_heading', array(
249
  'default' => esc_html__( 'Please Share This', 'ocean-social-sharing' ),
250
  'transport' => 'postMessage',
251
+ 'sanitize_callback' => 'wp_filter_post_kses',
252
  ) );
253
 
254
  $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'oss_social_share_heading', array(
264
  */
265
  $wp_customize->add_setting( 'oss_social_share_twitter_handle', array(
266
  'default' => '',
267
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
268
  ) );
269
 
270
  $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'oss_social_share_twitter_handle', array(
281
  $wp_customize->add_setting( 'oss_sharing_borders_color', array(
282
  'default' => '#e9e9e9',
283
  'transport' => 'postMessage',
284
+ 'sanitize_callback' => 'oceanwp_sanitize_color',
285
  ) );
286
 
287
  $wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'oss_sharing_borders_color', array(
297
  $wp_customize->add_setting( 'oss_sharing_icons_bg', array(
298
  'default' => '#ffffff',
299
  'transport' => 'postMessage',
300
+ 'sanitize_callback' => 'oceanwp_sanitize_color',
301
  ) );
302
 
303
  $wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'oss_sharing_icons_bg', array(
313
  $wp_customize->add_setting( 'oss_sharing_icons_color', array(
314
  'default' => '#bbbbbb',
315
  'transport' => 'postMessage',
316
+ 'sanitize_callback' => 'oceanwp_sanitize_color',
317
  ) );
318
 
319
  $wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'oss_sharing_icons_color', array(
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Ocean Social Sharing ===
2
  Contributors: oceanwp
3
  Tags: social, social sharing, social share, share, oceanwp
4
- Requires at least: 4.0
5
  Tested up to: 4.8
6
- Stable tag: 1.0.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -30,6 +30,9 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
30
 
31
  == Changelog ==
32
 
 
 
 
33
  = 1.0.5.1 =
34
  - Added: HTTPS for the Twitter and LinkedIn sharing links.
35
 
1
  === Ocean Social Sharing ===
2
  Contributors: oceanwp
3
  Tags: social, social sharing, social share, share, oceanwp
4
+ Requires at least: 4.5
5
  Tested up to: 4.8
6
+ Stable tag: 1.0.5.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
30
 
31
  == Changelog ==
32
 
33
+ = 1.0.5.2 =
34
+ - Added: All sanitize_callback for the customizer options.
35
+
36
  = 1.0.5.1 =
37
  - Added: HTTPS for the Twitter and LinkedIn sharing links.
38