SEO SIMPLE PACK - Version 2.2.4

Version Description

  • Support for WordPress 5.8.
  • Changed the default value of "tw_card" to 'summary_large_image'.
Download this release

Release Info

Developer looswebstudio
Plugin Icon 128x128 SEO SIMPLE PACK
Version 2.2.4
Comparing to
See all releases

Code changes from version 2.2.3 to 2.2.4

Files changed (5) hide show
  1. class/data.php +5 -3
  2. class/hooks.php +10 -8
  3. composer.json +2 -2
  4. readme.txt +7 -3
  5. seo-simple-pack.php +8 -4
class/data.php CHANGED
@@ -105,12 +105,14 @@ class SSP_Data {
105
  // インストール時に実行する処理
106
  self::setup_at_installed();
107
 
108
- } elseif ( (int) SSP_VERSION > (int) $installed_version ) {
109
 
110
  // 更新時に実行する処理
111
  self::setup_at_updated();
 
 
 
112
  }
113
- // SSP_VERSION
114
 
115
  // サイト基本情報取得
116
  self::$site_title = esc_html( get_option( 'blogname' ) );
@@ -184,7 +186,7 @@ class SSP_Data {
184
  'fb_admins' => '',
185
  'tw_active' => true,
186
  'tw_account' => '',
187
- 'tw_card' => 'summary',
188
  ];
189
 
190
  /**
105
  // インストール時に実行する処理
106
  self::setup_at_installed();
107
 
108
+ } elseif ( SSP_VERSION !== $installed_version ) {
109
 
110
  // 更新時に実行する処理
111
  self::setup_at_updated();
112
+
113
+ // バージョンが上がった時だけの処理
114
+ // if (version_compare( SSP_VERSION, $installed_version, '>' ) ) {}
115
  }
 
116
 
117
  // サイト基本情報取得
118
  self::$site_title = esc_html( get_option( 'blogname' ) );
186
  'fb_admins' => '',
187
  'tw_active' => true,
188
  'tw_account' => '',
189
+ 'tw_card' => 'summary_large_image',
190
  ];
191
 
192
  /**
class/hooks.php CHANGED
@@ -44,33 +44,35 @@ class SSP_Hooks {
44
  $is_editor_page = 'post.php' === $hook_suffix || 'post-new.php' === $hook_suffix;
45
  $is_ssp_page = false !== strpos( $hook_suffix, 'ssp_' );
46
 
 
 
47
  // SSP設定ページで読み込むファイル
48
  if ( $is_ssp_page ) {
49
 
50
- wp_enqueue_style( 'ssp-css', SSP_URL . 'dist/css/ssp.css', [], SSP_VERSION );
51
- wp_enqueue_script( 'ssp-script', SSP_URL . 'dist/js/ssp.js', ['jquery' ], SSP_VERSION, true );
52
 
53
  } elseif ( $is_editor_page ) {
54
 
55
- wp_enqueue_style( 'ssp-post', SSP_URL . 'dist/css/post.css', [], SSP_VERSION );
56
 
57
  } elseif ( $is_term ) {
58
 
59
- wp_enqueue_style( 'ssp-term', SSP_URL . 'dist/css/term.css', [], SSP_VERSION );
60
  }
61
 
62
  // 設定ページでの共通ファイル
63
  if ( $is_editor_page || $is_ssp_page || $is_term ) {
64
- wp_enqueue_style( 'ssp-common', SSP_URL . 'dist/css/common.css', [], SSP_VERSION );
65
 
66
  wp_enqueue_media();
67
- wp_enqueue_script( 'ssp-media', SSP_URL . 'dist/js/mediauploader.js', ['jquery' ], SSP_VERSION, true );
68
- wp_enqueue_script( 'ssp-common-script', SSP_URL . 'dist/js/common.js', ['jquery' ], SSP_VERSION, true );
69
  }
70
 
71
  // ダッシュボードでも読み込むファイル
72
  if ( $is_index ) {
73
- wp_enqueue_style( 'ssp-common', SSP_URL . 'dist/css/common.css', [], SSP_VERSION );
74
  }
75
 
76
  }
44
  $is_editor_page = 'post.php' === $hook_suffix || 'post-new.php' === $hook_suffix;
45
  $is_ssp_page = false !== strpos( $hook_suffix, 'ssp_' );
46
 
47
+ $ver = ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? wp_date( 'mdGis' ) : SSP_VERSION;
48
+
49
  // SSP設定ページで読み込むファイル
50
  if ( $is_ssp_page ) {
51
 
52
+ wp_enqueue_style( 'ssp-css', SSP_URL . 'dist/css/ssp.css', [], $ver );
53
+ wp_enqueue_script( 'ssp-script', SSP_URL . 'dist/js/ssp.js', ['jquery' ], $ver, true );
54
 
55
  } elseif ( $is_editor_page ) {
56
 
57
+ wp_enqueue_style( 'ssp-post', SSP_URL . 'dist/css/post.css', [], $ver );
58
 
59
  } elseif ( $is_term ) {
60
 
61
+ wp_enqueue_style( 'ssp-term', SSP_URL . 'dist/css/term.css', [], $ver );
62
  }
63
 
64
  // 設定ページでの共通ファイル
65
  if ( $is_editor_page || $is_ssp_page || $is_term ) {
66
+ wp_enqueue_style( 'ssp-common', SSP_URL . 'dist/css/common.css', [], $ver );
67
 
68
  wp_enqueue_media();
69
+ wp_enqueue_script( 'ssp-media', SSP_URL . 'dist/js/mediauploader.js', ['jquery' ], $ver, true );
70
+ wp_enqueue_script( 'ssp-common-script', SSP_URL . 'dist/js/common.js', ['jquery' ], $ver, true );
71
  }
72
 
73
  // ダッシュボードでも読み込むファイル
74
  if ( $is_index ) {
75
+ wp_enqueue_style( 'ssp-common', SSP_URL . 'dist/css/common.css', [], $ver );
76
  }
77
 
78
  }
composer.json CHANGED
@@ -5,8 +5,8 @@
5
  "license": "GPL-2.0-or-later",
6
  "authors": [
7
  {
8
- "name": "Ryo Yamasaki",
9
- "homepage": "https://arkhe-theme.com/"
10
  }
11
  ],
12
  "require-dev": {
5
  "license": "GPL-2.0-or-later",
6
  "authors": [
7
  {
8
+ "name": "LOOS,Inc.",
9
+ "homepage": "https://loos.co.jp/"
10
  }
11
  ],
12
  "require-dev": {
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: looswebstudio
3
  Donate link: https://loos-web-studio.com/
4
  Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.6
6
- Tested up to: 5.7
7
- Stable tag: 2.2.3
8
- Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -121,6 +121,10 @@ The following hooks are available.
121
 
122
  == Changelog ==
123
 
 
 
 
 
124
  = 2.2.3 =
125
  Adjusted the design of the setting page a little
126
 
3
  Donate link: https://loos-web-studio.com/
4
  Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.6
6
+ Tested up to: 5.8
7
+ Stable tag: 2.2.4
8
+ Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
121
 
122
  == Changelog ==
123
 
124
+ = 2.2.4 =
125
+ - Support for WordPress 5.8.
126
+ - Changed the default value of "tw_card" to `'summary_large_image'`.
127
+
128
  = 2.2.3 =
129
  Adjusted the design of the setting page a little
130
 
seo-simple-pack.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: SEO SIMPLE PACK
4
  * Plugin URI: https://wemo.tech/1670
5
  * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
6
- * Version: 2.2.3
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later
@@ -16,9 +16,6 @@ defined( 'ABSPATH' ) || exit;
16
  /**
17
  * 定数宣言
18
  */
19
- if ( ! defined( 'SSP_VERSION' ) ) {
20
- define( 'SSP_VERSION', ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? date_i18n( 'mdGis' ) : '2.2.3' );
21
- }
22
  if ( ! defined( 'SSP_PATH' ) ) {
23
  define( 'SSP_PATH', plugin_dir_path( __FILE__ ) );
24
  }
@@ -26,6 +23,12 @@ if ( ! defined( 'SSP_URL' ) ) {
26
  define( 'SSP_URL', plugins_url( '/', __FILE__ ) );
27
  }
28
 
 
 
 
 
 
 
29
 
30
  /**
31
  * 翻訳ファイルを登録 ( 自前の翻訳ファイルを読み込む )
@@ -43,6 +46,7 @@ if ( 'ja' === determine_locale() ) {
43
  require_once SSP_PATH . 'class/trait/field.php';
44
  require_once SSP_PATH . 'class/trait/output_helper.php';
45
 
 
46
  /**
47
  * Reading class files
48
  */
3
  * Plugin Name: SEO SIMPLE PACK
4
  * Plugin URI: https://wemo.tech/1670
5
  * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
6
+ * Version: 2.2.4
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later
16
  /**
17
  * 定数宣言
18
  */
 
 
 
19
  if ( ! defined( 'SSP_PATH' ) ) {
20
  define( 'SSP_PATH', plugin_dir_path( __FILE__ ) );
21
  }
23
  define( 'SSP_URL', plugins_url( '/', __FILE__ ) );
24
  }
25
 
26
+ // プラグインのバージョン
27
+ $file_data = get_file_data( __FILE__, [ 'version' => 'Version' ] );
28
+ if ( ! defined( 'SSP_VERSION' ) ) {
29
+ define( 'SSP_VERSION', $file_data['version'] );
30
+ }
31
+
32
 
33
  /**
34
  * 翻訳ファイルを登録 ( 自前の翻訳ファイルを読み込む )
46
  require_once SSP_PATH . 'class/trait/field.php';
47
  require_once SSP_PATH . 'class/trait/output_helper.php';
48
 
49
+
50
  /**
51
  * Reading class files
52
  */