Version Description
[ Bug fix ][ Google Analytics ] Fix PHP error in 9.82.0.0 [ Specification Change ][ Google Analytics ] Remove Customizer Setting.
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 9.84.1.0 |
Comparing to | |
See all releases |
Code changes from version 9.84.0.0 to 9.84.1.0
- inc/google_analytics/ga_customizer.php +0 -104
- inc/google_analytics/google_analytics.php +6 -4
- readme.txt +5 -1
- vendor/autoload.php +16 -3
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +6 -6
- vkExUnit.php +1 -1
inc/google_analytics/ga_customizer.php
DELETED
@@ -1,104 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
Add Customize Panel
|
5 |
-
/*-------------------------------------------*/
|
6 |
-
add_filter( 'veu_customize_panel_activation', 'veu_customize_panel_activation_ga' );
|
7 |
-
function veu_customize_panel_activation_ga() {
|
8 |
-
return true;
|
9 |
-
}
|
10 |
-
|
11 |
-
if ( apply_filters( 'veu_customize_panel_activation', false ) ) {
|
12 |
-
add_action( 'customize_register', 'veu_customize_register_ga', 20 );
|
13 |
-
}
|
14 |
-
|
15 |
-
function veu_customize_register_ga( $wp_customize ) {
|
16 |
-
|
17 |
-
/*
|
18 |
-
ga Settings セクション、テーマ設定、コントロールを追加
|
19 |
-
/*-------------------------------------------*/
|
20 |
-
// 1. テーマカスタマイザー上に新しいセクションを追加
|
21 |
-
$wp_customize->add_section(
|
22 |
-
'veu_ga_setting',
|
23 |
-
array(
|
24 |
-
'title' => __( 'Google Analtics Settings', 'vk-all-in-one-expansion-unit' ),
|
25 |
-
'priority' => 1,
|
26 |
-
'panel' => 'veu_setting',
|
27 |
-
)
|
28 |
-
);
|
29 |
-
|
30 |
-
// 2. WPデータベースに新しいテーマ設定を追加
|
31 |
-
// Google Analytics ID (GA4)
|
32 |
-
$wp_customize->add_setting(
|
33 |
-
'vkExUnit_ga_options[gaId-GA4]',
|
34 |
-
array(
|
35 |
-
'default' => '',
|
36 |
-
'type' => 'option', // 保存先 option or theme_mod
|
37 |
-
'capability' => 'edit_theme_options',
|
38 |
-
'sanitize_callback' => 'sanitize_text_field',
|
39 |
-
)
|
40 |
-
);
|
41 |
-
|
42 |
-
$wp_customize->add_control(
|
43 |
-
new ExUnit_Custom_Text_Control(
|
44 |
-
$wp_customize,
|
45 |
-
'gaId-GA4',
|
46 |
-
array(
|
47 |
-
'label' => __( 'Google Analytics ID ( GA4 )', 'vk-all-in-one-expansion-unit' ),
|
48 |
-
'section' => 'veu_ga_setting',
|
49 |
-
'settings' => 'vkExUnit_ga_options[gaId-GA4]',
|
50 |
-
'type' => 'text',
|
51 |
-
'description' => __( 'Please fill in the Google Analytics ID ( GA4 ) from the Analytics embed code used in the site.<br>ex) G-XXXXXXXXXX', 'vk-all-in-one-expansion-unit' ),
|
52 |
-
'input_before' => 'UA-',
|
53 |
-
)
|
54 |
-
)
|
55 |
-
);
|
56 |
-
|
57 |
-
// Google Analytics ID (UA)
|
58 |
-
$wp_customize->add_setting(
|
59 |
-
'vkExUnit_ga_options[gaId-UA]',
|
60 |
-
array(
|
61 |
-
'default' => '',
|
62 |
-
'type' => 'option', // 保存先 option or theme_mod
|
63 |
-
'capability' => 'edit_theme_options',
|
64 |
-
'sanitize_callback' => 'sanitize_text_field',
|
65 |
-
)
|
66 |
-
);
|
67 |
-
|
68 |
-
$wp_customize->add_control(
|
69 |
-
new ExUnit_Custom_Text_Control(
|
70 |
-
$wp_customize,
|
71 |
-
'gaId-UA',
|
72 |
-
array(
|
73 |
-
'label' => __( 'Google Analytics ID ( UA )', 'vk-all-in-one-expansion-unit' ),
|
74 |
-
'section' => 'veu_ga_setting',
|
75 |
-
'settings' => 'vkExUnit_ga_options[gaId-UA]',
|
76 |
-
'type' => 'text',
|
77 |
-
'description' => __( 'Please fill in the Google Analytics ID ( UA ) from the Analytics embed code used in the site.<br>ex) UA-XXXXXXXX-XX', 'vk-all-in-one-expansion-unit' ),
|
78 |
-
'input_before' => 'UA-',
|
79 |
-
)
|
80 |
-
)
|
81 |
-
);
|
82 |
-
|
83 |
-
// Disable Logged in
|
84 |
-
$wp_customize->add_setting(
|
85 |
-
'vkExUnit_ga_options[disableLoggedin]',
|
86 |
-
array(
|
87 |
-
'default' => '',
|
88 |
-
'type' => 'option', // 保存先 option or theme_mod
|
89 |
-
'capability' => 'edit_theme_options',
|
90 |
-
'sanitize_callback' => 'veu_sanitize_boolean',
|
91 |
-
)
|
92 |
-
);
|
93 |
-
|
94 |
-
$wp_customize->add_control(
|
95 |
-
'enableOGTags',
|
96 |
-
array(
|
97 |
-
'label' => __( 'Disable tracking of logged in user', 'vk-all-in-one-expansion-unit' ),
|
98 |
-
'section' => 'veu_ga_setting',
|
99 |
-
'settings' => 'vkExUnit_ga_options[disableLoggedin]',
|
100 |
-
'type' => 'checkbox',
|
101 |
-
)
|
102 |
-
);
|
103 |
-
|
104 |
-
} // function veu_customize_register_ga( $wp_customize )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/google_analytics/google_analytics.php
CHANGED
@@ -7,8 +7,6 @@ function vkExUnit_add_ga_options_page() {
|
|
7 |
// require dirname( __FILE__ ) . '/ga_admin.php';
|
8 |
require_once dirname( __FILE__ ) . '/ga_admin.php';
|
9 |
}
|
10 |
-
// カスタマイザー読み込み
|
11 |
-
require_once dirname( __FILE__ ) . '/ga_customizer.php';
|
12 |
|
13 |
/*
|
14 |
Options Init
|
@@ -40,8 +38,12 @@ function vkExUnit_get_ga_options() {
|
|
40 |
} else {
|
41 |
$options['gaId-UA'] = 'UA-' . $options['gaId'];
|
42 |
}
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
45 |
update_option( 'vkExUnit_ga_options', $options );
|
46 |
}
|
47 |
|
7 |
// require dirname( __FILE__ ) . '/ga_admin.php';
|
8 |
require_once dirname( __FILE__ ) . '/ga_admin.php';
|
9 |
}
|
|
|
|
|
10 |
|
11 |
/*
|
12 |
Options Init
|
38 |
} else {
|
39 |
$options['gaId-UA'] = 'UA-' . $options['gaId'];
|
40 |
}
|
41 |
+
if ( isset( $options['gaId'] ) ){
|
42 |
+
unset( $options['gaId'] );
|
43 |
+
}
|
44 |
+
if ( isset( $options['gaType'] ) ){
|
45 |
+
unset( $options['gaType'] );
|
46 |
+
}
|
47 |
update_option( 'vkExUnit_ga_options', $options );
|
48 |
}
|
49 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Fa
|
|
5 |
Requires at least: 5.3.0
|
6 |
Tested up to: 6.0.2
|
7 |
Requires PHP: 7.2
|
8 |
-
Stable tag: 9.84.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -81,6 +81,10 @@ e.g.
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
|
|
|
|
|
|
|
|
84 |
= 9.84.0.0 =
|
85 |
[ Specification Change ][ title tag ] Changed the title tag of the Home page so that the title tag specified in the fixed page has priority over the content specified in "ExUnit > Main setting screen".
|
86 |
|
5 |
Requires at least: 5.3.0
|
6 |
Tested up to: 6.0.2
|
7 |
Requires PHP: 7.2
|
8 |
+
Stable tag: 9.84.1.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
+
= 9.84.1.0 =
|
85 |
+
[ Bug fix ][ Google Analytics ] Fix PHP error in 9.82.0.0
|
86 |
+
[ Specification Change ][ Google Analytics ] Remove Customizer Setting.
|
87 |
+
|
88 |
= 9.84.0.0 =
|
89 |
[ Specification Change ][ title tag ] Changed the title tag of the Home page so that the title tag specified in the fixed page has priority over the content specified in "ExUnit > Main setting screen".
|
90 |
|
vendor/autoload.php
CHANGED
@@ -3,10 +3,23 @@
|
|
3 |
// autoload.php @generated by Composer
|
4 |
|
5 |
if (PHP_VERSION_ID < 50600) {
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
9 |
|
10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
11 |
|
12 |
-
return
|
3 |
// autoload.php @generated by Composer
|
4 |
|
5 |
if (PHP_VERSION_ID < 50600) {
|
6 |
+
if (!headers_sent()) {
|
7 |
+
header('HTTP/1.1 500 Internal Server Error');
|
8 |
+
}
|
9 |
+
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
|
10 |
+
if (!ini_get('display_errors')) {
|
11 |
+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
12 |
+
fwrite(STDERR, $err);
|
13 |
+
} elseif (!headers_sent()) {
|
14 |
+
echo $err;
|
15 |
+
}
|
16 |
+
}
|
17 |
+
trigger_error(
|
18 |
+
$err,
|
19 |
+
E_USER_ERROR
|
20 |
+
);
|
21 |
}
|
22 |
|
23 |
require_once __DIR__ . '/composer/autoload_real.php';
|
24 |
|
25 |
+
return ComposerAutoloaderInit64a458f68d5d0ad7f0807ecb38c81b37::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,12 +24,12 @@ class ComposerAutoloaderInitde773dc900d5d6f5389f739f012bc1b5
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
require __DIR__ . '/autoload_static.php';
|
32 |
-
call_user_func(\Composer\Autoload\
|
33 |
|
34 |
$loader->register(true);
|
35 |
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit64a458f68d5d0ad7f0807ecb38c81b37
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit64a458f68d5d0ad7f0807ecb38c81b37', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit64a458f68d5d0ad7f0807ecb38c81b37', 'loadClassLoader'));
|
30 |
|
31 |
require __DIR__ . '/autoload_static.php';
|
32 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit64a458f68d5d0ad7f0807ecb38c81b37::getInitializer($loader));
|
33 |
|
34 |
$loader->register(true);
|
35 |
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'V' =>
|
@@ -46,9 +46,9 @@ class ComposerStaticInitde773dc900d5d6f5389f739f012bc1b5
|
|
46 |
public static function getInitializer(ClassLoader $loader)
|
47 |
{
|
48 |
return \Closure::bind(function () use ($loader) {
|
49 |
-
$loader->prefixLengthsPsr4 =
|
50 |
-
$loader->prefixDirsPsr4 =
|
51 |
-
$loader->classMap =
|
52 |
|
53 |
}, null, ClassLoader::class);
|
54 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit64a458f68d5d0ad7f0807ecb38c81b37
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'V' =>
|
46 |
public static function getInitializer(ClassLoader $loader)
|
47 |
{
|
48 |
return \Closure::bind(function () use ($loader) {
|
49 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit64a458f68d5d0ad7f0807ecb38c81b37::$prefixLengthsPsr4;
|
50 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit64a458f68d5d0ad7f0807ecb38c81b37::$prefixDirsPsr4;
|
51 |
+
$loader->classMap = ComposerStaticInit64a458f68d5d0ad7f0807ecb38c81b37::$classMap;
|
52 |
|
53 |
}, null, ClassLoader::class);
|
54 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
'name' => 'vektor-inc/vk-all-in-one-expansion-unit',
|
4 |
-
'pretty_version' => '9.84.
|
5 |
-
'version' => '9.84.
|
6 |
-
'reference' => '
|
7 |
'type' => 'project',
|
8 |
'install_path' => __DIR__ . '/../../',
|
9 |
'aliases' => array(),
|
@@ -20,9 +20,9 @@
|
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'vektor-inc/vk-all-in-one-expansion-unit' => array(
|
23 |
-
'pretty_version' => '9.84.
|
24 |
-
'version' => '9.84.
|
25 |
-
'reference' => '
|
26 |
'type' => 'project',
|
27 |
'install_path' => __DIR__ . '/../../',
|
28 |
'aliases' => array(),
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
'name' => 'vektor-inc/vk-all-in-one-expansion-unit',
|
4 |
+
'pretty_version' => '9.84.1.0',
|
5 |
+
'version' => '9.84.1.0',
|
6 |
+
'reference' => 'fa327ffa8eeae1befcbb4e0ea8bb7dc9103e1f57',
|
7 |
'type' => 'project',
|
8 |
'install_path' => __DIR__ . '/../../',
|
9 |
'aliases' => array(),
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'vektor-inc/vk-all-in-one-expansion-unit' => array(
|
23 |
+
'pretty_version' => '9.84.1.0',
|
24 |
+
'version' => '9.84.1.0',
|
25 |
+
'reference' => 'fa327ffa8eeae1befcbb4e0ea8bb7dc9103e1f57',
|
26 |
'type' => 'project',
|
27 |
'install_path' => __DIR__ . '/../../',
|
28 |
'aliases' => array(),
|
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: 9.84.
|
7 |
* Requires PHP: 7.2
|
8 |
* Author: Vektor,Inc.
|
9 |
* Text Domain: vk-all-in-one-expansion-unit
|
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: 9.84.1.0
|
7 |
* Requires PHP: 7.2
|
8 |
* Author: Vektor,Inc.
|
9 |
* Text Domain: vk-all-in-one-expansion-unit
|