VK All in One Expansion Unit - Version 8.1.1

Version Description

[ bug fix ] sns title custom value do not save bug fix

Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 8.1.1
Comparing to
See all releases

Code changes from version 8.1.0 to 8.1.1

Files changed (3) hide show
  1. plugins/sns/sns.php +18 -16
  2. readme.txt +4 -1
  3. vkExUnit.php +1 -1
plugins/sns/sns.php CHANGED
@@ -63,6 +63,7 @@ function veu_get_sns_options_default() {
63
 
64
  /**
65
  * [veu_get_the_sns_title description]
 
66
  * @return [type] [description]
67
  */
68
  function veu_get_the_sns_title( $post_id = '' ) {
@@ -94,22 +95,23 @@ function veu_get_the_sns_title( $post_id = '' ) {
94
  function vkExUnit_sns_options_validate( $input ) {
95
  $output = $defaults = veu_get_sns_options_default();
96
 
97
- $output['fbAppId'] = esc_attr( $input['fbAppId'] );
98
- $output['fbPageUrl'] = esc_url( $input['fbPageUrl'] );
99
- $output['ogImage'] = esc_url( $input['ogImage'] );
100
- $output['twitterId'] = esc_attr( $input['twitterId'] );
101
- $output['snsBtn_ignorePosts'] = preg_replace( '/[^0-9,]/', '', $input['snsBtn_ignorePosts'] );
102
- $output['enableOGTags'] = ( isset( $input['enableOGTags'] ) && $input['enableOGTags'] ) ? true : false;
103
- $output['enableTwitterCardTags'] = ( isset( $input['enableTwitterCardTags'] ) && $input['enableTwitterCardTags'] ) ? true : false;
104
- $output['enableSnsBtns'] = ( isset( $input['enableSnsBtns'] ) && $input['enableSnsBtns'] ) ? true : false;
105
- $output['snsBtn_exclude_post_types'] = ( isset( $input['snsBtn_exclude_post_types'] ) ) ? $input['snsBtn_exclude_post_types'] : '';
106
- $output['enableFollowMe'] = ( isset( $input['enableFollowMe'] ) && $input['enableFollowMe'] ) ? true : false;
107
- $output['followMe_title'] = $input['followMe_title'];
108
- $output['useFacebook'] = ( isset( $input['useFacebook'] ) && $input['useFacebook'] == 'true' );
109
- $output['useTwitter'] = ( isset( $input['useTwitter'] ) && $input['useTwitter'] == 'true' );
110
- $output['useHatena'] = ( isset( $input['useHatena'] ) && $input['useHatena'] == 'true' );
111
- $output['usePocket'] = ( isset( $input['usePocket'] ) && $input['usePocket'] == 'true' );
112
- $output['useLine'] = ( isset( $input['useLine'] ) && $input['useLine'] == 'true' );
 
113
 
114
  /*
115
  SNSボタンの塗りつぶし関連は管理画面に値がないので、カスタマイザーで保存された値を入れる必要がある
63
 
64
  /**
65
  * [veu_get_the_sns_title description]
66
+ *
67
  * @return [type] [description]
68
  */
69
  function veu_get_the_sns_title( $post_id = '' ) {
95
  function vkExUnit_sns_options_validate( $input ) {
96
  $output = $defaults = veu_get_sns_options_default();
97
 
98
+ $output['fbAppId'] = esc_attr( $input['fbAppId'] );
99
+ $output['fbPageUrl'] = esc_url( $input['fbPageUrl'] );
100
+ $output['ogImage'] = esc_url( $input['ogImage'] );
101
+ $output['twitterId'] = esc_attr( $input['twitterId'] );
102
+ $output['snsBtn_ignorePosts'] = preg_replace( '/[^0-9,]/', '', $input['snsBtn_ignorePosts'] );
103
+ $output['snsTitle_use_only_postTitle'] = ( isset( $input['snsTitle_use_only_postTitle'] ) && $input['snsTitle_use_only_postTitle'] ) ? true : false;
104
+ $output['enableOGTags'] = ( isset( $input['enableOGTags'] ) && $input['enableOGTags'] ) ? true : false;
105
+ $output['enableTwitterCardTags'] = ( isset( $input['enableTwitterCardTags'] ) && $input['enableTwitterCardTags'] ) ? true : false;
106
+ $output['enableSnsBtns'] = ( isset( $input['enableSnsBtns'] ) && $input['enableSnsBtns'] ) ? true : false;
107
+ $output['snsBtn_exclude_post_types'] = ( isset( $input['snsBtn_exclude_post_types'] ) ) ? $input['snsBtn_exclude_post_types'] : '';
108
+ $output['enableFollowMe'] = ( isset( $input['enableFollowMe'] ) && $input['enableFollowMe'] ) ? true : false;
109
+ $output['followMe_title'] = $input['followMe_title'];
110
+ $output['useFacebook'] = ( isset( $input['useFacebook'] ) && $input['useFacebook'] == 'true' );
111
+ $output['useTwitter'] = ( isset( $input['useTwitter'] ) && $input['useTwitter'] == 'true' );
112
+ $output['useHatena'] = ( isset( $input['useHatena'] ) && $input['useHatena'] == 'true' );
113
+ $output['usePocket'] = ( isset( $input['usePocket'] ) && $input['usePocket'] == 'true' );
114
+ $output['useLine'] = ( isset( $input['useLine'] ) && $input['useLine'] == 'true' );
115
 
116
  /*
117
  SNSボタンの塗りつぶし関連は管理画面に値がないので、カスタマイザーで保存された値を入れる必要がある
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 4.4
6
  Tested up to: 5.1.1
7
- Stable tag: 8.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -86,6 +86,9 @@ e.g.
86
 
87
  == Changelog ==
88
 
 
 
 
89
  = 8.1.0 =
90
  [ Specification change ][ OG title custom ] Add custom post type support.
91
 
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 4.4
6
  Tested up to: 5.1.1
7
+ Stable tag: 8.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
86
 
87
  == Changelog ==
88
 
89
+ = 8.1.1 =
90
+ [ bug fix ] sns title custom value do not save bug fix
91
+
92
  = 8.1.0 =
93
  [ Specification change ][ OG title custom ] Add custom post type support.
94
 
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: https://ex-unit.nagoya
5
  * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
- * Version: 8.1.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: https://ex-unit.nagoya
5
  * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
+ * Version: 8.1.1
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages