Version Description
1.1
Download this release
Release Info
Developer | looswebstudio |
Plugin | SEO SIMPLE PACK |
Version | 1.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.1.3
- class/ssp_activate.php +0 -4
- class/ssp_init.php +23 -1
- readme.txt +2 -2
- seo-simple-pack.php +2 -2
class/ssp_activate.php
CHANGED
@@ -28,10 +28,6 @@ class SSP_Activate {
|
|
28 |
$SSP_settings = get_option( SSP_Data::DB_NAME[ 'settings' ] );
|
29 |
$SSP_ogp = get_option( SSP_Data::DB_NAME[ 'ogp' ] );
|
30 |
|
31 |
-
if ( get_option( SSP_Data::DB_NAME[ 'notification' ] ) !== 'hide' ) {
|
32 |
-
update_option( SSP_Data::DB_NAME[ 'notification' ], 'show' );
|
33 |
-
}
|
34 |
-
|
35 |
}
|
36 |
|
37 |
//DB更新
|
28 |
$SSP_settings = get_option( SSP_Data::DB_NAME[ 'settings' ] );
|
29 |
$SSP_ogp = get_option( SSP_Data::DB_NAME[ 'ogp' ] );
|
30 |
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
//DB更新
|
class/ssp_init.php
CHANGED
@@ -46,10 +46,32 @@ class SSP_Init {
|
|
46 |
}
|
47 |
|
48 |
/**
|
49 |
-
*
|
50 |
*/
|
51 |
private function set_notification() {
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
if ( isset($_POST['ssp_notice_close'] ) ) {
|
54 |
//CLOSEボタン押されたら
|
55 |
update_option( SSP_Data::DB_NAME[ 'notification' ], 'hide' );
|
46 |
}
|
47 |
|
48 |
/**
|
49 |
+
* 更新に関する通知
|
50 |
*/
|
51 |
private function set_notification() {
|
52 |
|
53 |
+
/**
|
54 |
+
* プラグイン更新時
|
55 |
+
*/
|
56 |
+
add_action( 'upgrader_process_complete', 'ssp_upgrader_process_complete', 10, 2 );
|
57 |
+
function ssp_upgrader_process_complete( $upgrader_object, $options ) {
|
58 |
+
|
59 |
+
if ( defined( 'SSP_BASENAME' ) ) {
|
60 |
+
if ( $options['action'] === 'update' && $options['type'] === 'plugin' ){
|
61 |
+
foreach( $options['plugins'] as $plugin_basename ) {
|
62 |
+
if ( $plugin_basename === SSP_BASENAME ){
|
63 |
+
|
64 |
+
if ( get_option( SSP_Data::DB_NAME[ 'notification' ] ) !== 'hide' ) {
|
65 |
+
update_option( SSP_Data::DB_NAME[ 'notification' ], 'show' );
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
69 |
+
}
|
70 |
+
}
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
if ( isset($_POST['ssp_notice_close'] ) ) {
|
76 |
//CLOSEボタン押されたら
|
77 |
update_option( SSP_Data::DB_NAME[ 'notification' ], 'hide' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://loos-web-studio.com/
|
|
4 |
Tags: SEO,meta,analytics,webmaster,simple,japan
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 4.9.8
|
7 |
-
Stable tag: 1.1.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -109,7 +109,7 @@ wp_head内( `_wp_render_title_tag` )で出力される`title`タグは削除す
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
-
= 1.1.
|
113 |
1.1アップデートに伴う重大な変更を管理画面にて通知する設定を追加
|
114 |
|
115 |
|
4 |
Tags: SEO,meta,analytics,webmaster,simple,japan
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 4.9.8
|
7 |
+
Stable tag: 1.1.3
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.1.3 =
|
113 |
1.1アップデートに伴う重大な変更を管理画面にて通知する設定を追加
|
114 |
|
115 |
|
seo-simple-pack.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SEO SIMPLE PACK
|
4 |
Plugin URI: https://wemo.tech/1670
|
5 |
Description: シンプルなSEOプラグイン。ページ種別・投稿ごとにmetaタグやOGPタグを簡単に設定・カスタマイズできます。
|
6 |
-
Version: 1.1.
|
7 |
Author: LOOS WEB STUDIO
|
8 |
Author URI: https://loos-web-studio.com/
|
9 |
License: GPL2
|
@@ -57,7 +57,7 @@ if ( (double) $phpver < 5.6 ) {
|
|
57 |
* 定数宣言
|
58 |
*/
|
59 |
if ( ! defined( 'SSP_VERSION' ) ) {
|
60 |
-
define( 'SSP_VERSION', '1.1.
|
61 |
}
|
62 |
if ( ! defined( 'SSP_FILE' ) ) {
|
63 |
define( 'SSP_FILE', __FILE__ );
|
3 |
Plugin Name: SEO SIMPLE PACK
|
4 |
Plugin URI: https://wemo.tech/1670
|
5 |
Description: シンプルなSEOプラグイン。ページ種別・投稿ごとにmetaタグやOGPタグを簡単に設定・カスタマイズできます。
|
6 |
+
Version: 1.1.3
|
7 |
Author: LOOS WEB STUDIO
|
8 |
Author URI: https://loos-web-studio.com/
|
9 |
License: GPL2
|
57 |
* 定数宣言
|
58 |
*/
|
59 |
if ( ! defined( 'SSP_VERSION' ) ) {
|
60 |
+
define( 'SSP_VERSION', '1.1.3' );
|
61 |
}
|
62 |
if ( ! defined( 'SSP_FILE' ) ) {
|
63 |
define( 'SSP_FILE', __FILE__ );
|