Version Description
[ bugfix ][ insert ads ] can't remove post type check box
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 8.1.3 |
Comparing to | |
See all releases |
Code changes from version 8.1.2 to 8.1.3
- plugins/insert_ads.php +15 -4
- readme.txt +4 -1
- vkExUnit.php +1 -1
plugins/insert_ads.php
CHANGED
@@ -145,9 +145,9 @@ class vExUnit_Ads {
|
|
145 |
|
146 |
public function sanitize_config( $input ) {
|
147 |
$option = $input;
|
148 |
-
$option['google-ads-active'] = esc_attr( $input['google-ads-active'] );
|
149 |
-
$option['google-ads-overlays-bottom'] = esc_attr( $input['google-ads-overlays-bottom'] );
|
150 |
-
$option['google-pub-id'] = esc_attr( $input['google-pub-id'] );
|
151 |
$option['before'][0] = stripslashes( $input['before'][0] );
|
152 |
$option['before'][1] = stripslashes( $input['before'][1] );
|
153 |
$option['more'][0] = stripslashes( $input['more'][0] );
|
@@ -155,6 +155,17 @@ class vExUnit_Ads {
|
|
155 |
$option['after'][0] = stripslashes( $input['after'][0] );
|
156 |
$option['after'][1] = stripslashes( $input['after'][1] );
|
157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
if ( ! $option['before'][0] && $option['before'][1] ) {
|
159 |
$option['before'][0] = $option['before'][1];
|
160 |
$option['before'][1] = '';
|
@@ -190,7 +201,7 @@ class vExUnit_Ads {
|
|
190 |
'after' => array( '' ),
|
191 |
'post_types' => array( 'post' => true ),
|
192 |
);
|
193 |
-
$option = get_option( 'vkExUnit_Ads'
|
194 |
|
195 |
// post_types を後で追加したので、option値に保存されてない時にデフォルトの post とマージする
|
196 |
$option = wp_parse_args( $option, $default );
|
145 |
|
146 |
public function sanitize_config( $input ) {
|
147 |
$option = $input;
|
148 |
+
$option['google-ads-active'] = ( isset( $input['google-ads-active'] ) ) ? esc_attr( $input['google-ads-active'] ) : '';
|
149 |
+
$option['google-ads-overlays-bottom'] = ( isset( $input['google-ads-overlays-bottom'] ) ) ? esc_attr( $input['google-ads-overlays-bottom'] ) : '';
|
150 |
+
$option['google-pub-id'] = ( isset( $input['google-pub-id'] ) ) ? esc_attr( $input['google-pub-id'] ) : '';
|
151 |
$option['before'][0] = stripslashes( $input['before'][0] );
|
152 |
$option['before'][1] = stripslashes( $input['before'][1] );
|
153 |
$option['more'][0] = stripslashes( $input['more'][0] );
|
155 |
$option['after'][0] = stripslashes( $input['after'][0] );
|
156 |
$option['after'][1] = stripslashes( $input['after'][1] );
|
157 |
|
158 |
+
if ( isset( $input['post_types'] ) && is_array( $input['post_types'] ) ) {
|
159 |
+
foreach ( $input['post_types'] as $key => $value ) {
|
160 |
+
$option['post_types'][ $key ] = esc_attr( $value );
|
161 |
+
}
|
162 |
+
} else {
|
163 |
+
// 'post_types' 自体が存在しないと、デフォルト値として ['post_types']['post'] = true を返すように作ってあり、
|
164 |
+
// チェックボックスのチェックが外れなくなるので
|
165 |
+
// チェックが全部外れている時に 'post' => false をいれておく
|
166 |
+
$option['post_types']['post'] = false;
|
167 |
+
}
|
168 |
+
|
169 |
if ( ! $option['before'][0] && $option['before'][1] ) {
|
170 |
$option['before'][0] = $option['before'][1];
|
171 |
$option['before'][1] = '';
|
201 |
'after' => array( '' ),
|
202 |
'post_types' => array( 'post' => true ),
|
203 |
);
|
204 |
+
$option = get_option( 'vkExUnit_Ads' );
|
205 |
|
206 |
// post_types を後で追加したので、option値に保存されてない時にデフォルトの post とマージする
|
207 |
$option = wp_parse_args( $option, $default );
|
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.
|
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.2 =
|
90 |
[ bugfix ][ new-posts-widget ] Undefined variable error fixed
|
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.3
|
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.3 =
|
90 |
+
[ bugfix ][ insert ads ] can't remove post type check box
|
91 |
+
|
92 |
= 8.1.2 =
|
93 |
[ bugfix ][ new-posts-widget ] Undefined variable error fixed
|
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.
|
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.3
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vkExUnit
|
9 |
* Domain Path: /languages
|