Version Description
- Added: All sanitize_callback for the customizer options.
Download this release
Release Info
Developer | oceanwp |
Plugin | Ocean Product Sharing |
Version | 1.0.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.2.3 to 1.0.2.4
- ocean-product-sharing.php +7 -7
- readme.txt +5 -2
ocean-product-sharing.php
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
* Plugin Name: Ocean Product Sharing
|
4 |
* Plugin URI: https://oceanwp.org/extension/ocean-product-sharing/
|
5 |
* Description: A simple plugin to add social share buttons to your product page.
|
6 |
-
* Version: 1.0.2.
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
-
* Requires at least: 4.
|
10 |
* Tested up to: 4.8
|
11 |
*
|
12 |
* Text Domain: ocean-product-sharing
|
@@ -86,7 +86,7 @@ final class Ocean_Product_Sharing {
|
|
86 |
$this->token = 'ocean-product-sharing';
|
87 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
88 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
89 |
-
$this->version = '1.0.2.
|
90 |
|
91 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
92 |
|
@@ -212,7 +212,7 @@ final class Ocean_Product_Sharing {
|
|
212 |
*/
|
213 |
$wp_customize->add_setting( 'ops_product_sharing_sites', array(
|
214 |
'default' => array( 'twitter', 'facebook', 'pinterest', 'email' ),
|
215 |
-
'sanitize_callback' =>
|
216 |
) );
|
217 |
|
218 |
$wp_customize->add_control( new OceanWP_Customizer_Sortable_Control( $wp_customize, 'ops_product_sharing_sites', array(
|
@@ -234,7 +234,7 @@ final class Ocean_Product_Sharing {
|
|
234 |
$wp_customize->add_setting( 'ops_product_sharing_borders_color', array(
|
235 |
'default' => '#e9e9e9',
|
236 |
'transport' => 'postMessage',
|
237 |
-
'sanitize_callback' =>
|
238 |
) );
|
239 |
|
240 |
$wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'ops_product_sharing_borders_color', array(
|
@@ -250,7 +250,7 @@ final class Ocean_Product_Sharing {
|
|
250 |
$wp_customize->add_setting( 'ops_product_sharing_icons_bg', array(
|
251 |
'default' => '#333333',
|
252 |
'transport' => 'postMessage',
|
253 |
-
'sanitize_callback' =>
|
254 |
) );
|
255 |
|
256 |
$wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'ops_product_sharing_icons_bg', array(
|
@@ -266,7 +266,7 @@ final class Ocean_Product_Sharing {
|
|
266 |
$wp_customize->add_setting( 'ops_product_sharing_icons_color', array(
|
267 |
'default' => '#ffffff',
|
268 |
'transport' => 'postMessage',
|
269 |
-
'sanitize_callback' =>
|
270 |
) );
|
271 |
|
272 |
$wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'ops_product_sharing_icons_color', array(
|
3 |
* Plugin Name: Ocean Product Sharing
|
4 |
* Plugin URI: https://oceanwp.org/extension/ocean-product-sharing/
|
5 |
* Description: A simple plugin to add social share buttons to your product page.
|
6 |
+
* Version: 1.0.2.4
|
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-product-sharing
|
86 |
$this->token = 'ocean-product-sharing';
|
87 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
88 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
89 |
+
$this->version = '1.0.2.4';
|
90 |
|
91 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
92 |
|
212 |
*/
|
213 |
$wp_customize->add_setting( 'ops_product_sharing_sites', array(
|
214 |
'default' => array( 'twitter', 'facebook', 'pinterest', 'email' ),
|
215 |
+
'sanitize_callback' => 'oceanwp_sanitize_multi_choices',
|
216 |
) );
|
217 |
|
218 |
$wp_customize->add_control( new OceanWP_Customizer_Sortable_Control( $wp_customize, 'ops_product_sharing_sites', array(
|
234 |
$wp_customize->add_setting( 'ops_product_sharing_borders_color', array(
|
235 |
'default' => '#e9e9e9',
|
236 |
'transport' => 'postMessage',
|
237 |
+
'sanitize_callback' => 'oceanwp_sanitize_color',
|
238 |
) );
|
239 |
|
240 |
$wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'ops_product_sharing_borders_color', array(
|
250 |
$wp_customize->add_setting( 'ops_product_sharing_icons_bg', array(
|
251 |
'default' => '#333333',
|
252 |
'transport' => 'postMessage',
|
253 |
+
'sanitize_callback' => 'oceanwp_sanitize_color',
|
254 |
) );
|
255 |
|
256 |
$wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'ops_product_sharing_icons_bg', array(
|
266 |
$wp_customize->add_setting( 'ops_product_sharing_icons_color', array(
|
267 |
'default' => '#ffffff',
|
268 |
'transport' => 'postMessage',
|
269 |
+
'sanitize_callback' => 'oceanwp_sanitize_color',
|
270 |
) );
|
271 |
|
272 |
$wp_customize->add_control( new OceanWP_Customizer_Color_Control( $wp_customize, 'ops_product_sharing_icons_color', array(
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Ocean Product Sharing ===
|
2 |
Contributors: oceanwp
|
3 |
Tags: social, social sharing, social share product, share product, oceanwp
|
4 |
-
Requires at least: 4.
|
5 |
Tested up to: 4.8
|
6 |
-
Stable tag: 1.0.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -31,6 +31,9 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
|
|
31 |
|
32 |
== Changelog ==
|
33 |
|
|
|
|
|
|
|
34 |
= 1.0.2.3 =
|
35 |
- Tweak: Responsive buttons style improved.
|
36 |
|
1 |
=== Ocean Product Sharing ===
|
2 |
Contributors: oceanwp
|
3 |
Tags: social, social sharing, social share product, share product, oceanwp
|
4 |
+
Requires at least: 4.5
|
5 |
Tested up to: 4.8
|
6 |
+
Stable tag: 1.0.2.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
31 |
|
32 |
== Changelog ==
|
33 |
|
34 |
+
= 1.0.2.4 =
|
35 |
+
- Added: All sanitize_callback for the customizer options.
|
36 |
+
|
37 |
= 1.0.2.3 =
|
38 |
- Tweak: Responsive buttons style improved.
|
39 |
|