Version Description
Fixed a bug that the description setting of the tag page was not reflected.
Download this release
Release Info
Developer | looswebstudio |
Plugin | SEO SIMPLE PACK |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- class/ssp_activate.php +1 -5
- class/ssp_data.php +5 -5
- class/ssp_init.php +7 -5
- class/ssp_methods.php +1 -1
- class/ssp_output.php +2 -3
- inc/parts/tab_post_type.php +4 -4
- readme.txt +4 -1
- seo-simple-pack.php +2 -2
class/ssp_activate.php
CHANGED
@@ -34,7 +34,6 @@ class SSP_Activate {
|
|
34 |
// $SSP_ogp = get_option( SSP_Data::DB_NAME[ 'ogp' ] );
|
35 |
|
36 |
}
|
37 |
-
|
38 |
}
|
39 |
|
40 |
|
@@ -42,8 +41,7 @@ class SSP_Activate {
|
|
42 |
* プラグイン停止時の処理
|
43 |
* Function for the plugin deactivated.
|
44 |
*/
|
45 |
-
public static function plugin_deactivate() {
|
46 |
-
}
|
47 |
|
48 |
|
49 |
/**
|
@@ -56,6 +54,4 @@ class SSP_Activate {
|
|
56 |
}
|
57 |
}
|
58 |
|
59 |
-
|
60 |
-
|
61 |
}
|
34 |
// $SSP_ogp = get_option( SSP_Data::DB_NAME[ 'ogp' ] );
|
35 |
|
36 |
}
|
|
|
37 |
}
|
38 |
|
39 |
|
41 |
* プラグイン停止時の処理
|
42 |
* Function for the plugin deactivated.
|
43 |
*/
|
44 |
+
public static function plugin_deactivate() {}
|
|
|
45 |
|
46 |
|
47 |
/**
|
54 |
}
|
55 |
}
|
56 |
|
|
|
|
|
57 |
}
|
class/ssp_data.php
CHANGED
@@ -80,10 +80,10 @@ class SSP_Data {
|
|
80 |
'page_noindex' => false,
|
81 |
'page_title' => '%_page_title_% %_sep_% %_site_title_%',
|
82 |
'page_desc' => '%_page_contents_%',
|
83 |
-
'
|
84 |
-
'
|
85 |
-
'
|
86 |
-
'
|
87 |
'cat_noindex' => true,
|
88 |
'cat_title' => '%_cat_name_% %_sep_% %_site_title_%',
|
89 |
// 'cat_desc' => 'カテゴリー「%_cat_name_%」の一覧ページです。',
|
@@ -95,7 +95,7 @@ class SSP_Data {
|
|
95 |
'post_format_noindex' => true,
|
96 |
'post_format_title' => '%_format_name_% %_sep_% %_site_title_%',
|
97 |
'post_format_desc' => '投稿フォーマット「%_format_name_%」の一覧ページです。',
|
98 |
-
'author_disable' =>
|
99 |
'author_noindex' => true,
|
100 |
'author_title' => '%_author_name_% %_sep_% %_site_title_%',
|
101 |
'author_desc' => '%_author_name_% の執筆記事一覧ページです。',
|
80 |
'page_noindex' => false,
|
81 |
'page_title' => '%_page_title_% %_sep_% %_site_title_%',
|
82 |
'page_desc' => '%_page_contents_%',
|
83 |
+
'attachment_disable' => true,
|
84 |
+
'attachment_noindex' => true,
|
85 |
+
'attachment_title' => '%_page_title_% %_sep_% %_site_title_%',
|
86 |
+
'attachment_desc' => '%_page_contents_%',
|
87 |
'cat_noindex' => true,
|
88 |
'cat_title' => '%_cat_name_% %_sep_% %_site_title_%',
|
89 |
// 'cat_desc' => 'カテゴリー「%_cat_name_%」の一覧ページです。',
|
95 |
'post_format_noindex' => true,
|
96 |
'post_format_title' => '%_format_name_% %_sep_% %_site_title_%',
|
97 |
'post_format_desc' => '投稿フォーマット「%_format_name_%」の一覧ページです。',
|
98 |
+
'author_disable' => false,
|
99 |
'author_noindex' => true,
|
100 |
'author_title' => '%_author_name_% %_sep_% %_site_title_%',
|
101 |
'author_desc' => '%_author_name_% の執筆記事一覧ページです。',
|
class/ssp_init.php
CHANGED
@@ -24,12 +24,14 @@ class SSP_Init {
|
|
24 |
//サイト基本情報取得
|
25 |
SSP_Data::$site_title = esc_html( get_option( 'blogname' ) );
|
26 |
SSP_Data::$site_catch_phrase = esc_html( get_option( 'blogdescription' ) );
|
27 |
-
SSP_Data::$settings = get_option( SSP_Data::DB_NAME[ 'settings' ] ) ?: SSP_Data::DEFAULT_SETTINGS;
|
28 |
-
SSP_Data::$ogp = get_option( SSP_Data::DB_NAME[ 'ogp' ] ) ?: SSP_Data::DEFAULT_OGP;
|
29 |
|
30 |
-
//
|
31 |
-
|
32 |
-
SSP_Data::$
|
|
|
|
|
|
|
|
|
33 |
|
34 |
}
|
35 |
|
24 |
//サイト基本情報取得
|
25 |
SSP_Data::$site_title = esc_html( get_option( 'blogname' ) );
|
26 |
SSP_Data::$site_catch_phrase = esc_html( get_option( 'blogdescription' ) );
|
|
|
|
|
27 |
|
28 |
+
// 一般設定データ
|
29 |
+
$db_ssp_settings = get_option( SSP_Data::DB_NAME[ 'settings' ] ) ?: [];
|
30 |
+
SSP_Data::$settings = array_merge( SSP_Data::DEFAULT_SETTINGS, $db_ssp_settings );
|
31 |
+
|
32 |
+
// OGPせ設定
|
33 |
+
$db_ssp_ogp = get_option( SSP_Data::DB_NAME[ 'ogp' ] ) ?: [];
|
34 |
+
SSP_Data::$ogp = array_merge( SSP_Data::DEFAULT_OGP, $db_ssp_settings );
|
35 |
|
36 |
}
|
37 |
|
class/ssp_methods.php
CHANGED
@@ -153,7 +153,7 @@ class SSP_Methods {
|
|
153 |
exit;
|
154 |
};
|
155 |
}
|
156 |
-
if ( SSP_Branch::$is_['attachment'] && SSP_Data::$settings['
|
157 |
wp_safe_redirect(get_post()->guid);
|
158 |
exit;
|
159 |
}
|
153 |
exit;
|
154 |
};
|
155 |
}
|
156 |
+
if ( SSP_Branch::$is_['attachment'] && SSP_Data::$settings['attachment_disable'] ) {
|
157 |
wp_safe_redirect(get_post()->guid);
|
158 |
exit;
|
159 |
}
|
class/ssp_output.php
CHANGED
@@ -420,12 +420,11 @@ class SSP_Output {
|
|
420 |
break;
|
421 |
|
422 |
case $is_[ 'tag' ] :
|
423 |
-
|
424 |
-
$description = SSP_Data::$settings[ 'tag_desc' ];
|
425 |
break;
|
426 |
|
427 |
case $is_[ 'tax' ] :
|
428 |
-
|
429 |
$term = self::$obj->taxonomy;
|
430 |
$description = SSP_Data::$settings[ $term.'_desc' ];
|
431 |
break;
|
420 |
break;
|
421 |
|
422 |
case $is_[ 'tag' ] :
|
423 |
+
$meta_description = get_term_meta(self::$obj->term_id, SSP_MetaBox::T_METANAME['description'], true);
|
424 |
+
$description = $meta_description ?: SSP_Data::$settings[ 'tag_desc' ];
|
425 |
break;
|
426 |
|
427 |
case $is_[ 'tax' ] :
|
|
|
428 |
$term = self::$obj->taxonomy;
|
429 |
$description = SSP_Data::$settings[ $term.'_desc' ];
|
430 |
break;
|
inc/parts/tab_post_type.php
CHANGED
@@ -143,7 +143,7 @@ SSP_Methods::output_table_rows( $table_rows ); ?>
|
|
143 |
<table class="form-table">
|
144 |
<tbody>
|
145 |
<?php $table_rows = [
|
146 |
-
'
|
147 |
'title'=>'「メディア」を使用しない',
|
148 |
'reqired' => false,
|
149 |
'class' => '',
|
@@ -152,7 +152,7 @@ SSP_Methods::output_table_rows( $table_rows ); ?>
|
|
152 |
'prev' => false,
|
153 |
'desc' => '「はい」を選択すると「メディア」の個別ページへアクセスしても画像URLへとリダイレクトされます。',
|
154 |
],
|
155 |
-
'
|
156 |
'title'=>'「メディア」をインデックスさせない',
|
157 |
'reqired' => false,
|
158 |
'class' => '',
|
@@ -161,7 +161,7 @@ SSP_Methods::output_table_rows( $table_rows ); ?>
|
|
161 |
'prev' => false,
|
162 |
'desc' => '「はい」を選択するとデフォルトの出力が <code>noindex</code> となります。',
|
163 |
],
|
164 |
-
'
|
165 |
'title'=>'タイトルタグの形式',
|
166 |
'reqired' => false,
|
167 |
'class' => '',
|
@@ -170,7 +170,7 @@ SSP_Methods::output_table_rows( $table_rows ); ?>
|
|
170 |
'prev' => true,
|
171 |
'desc' => '「メディア」( <code>attachment</code> )の記事に出力する <code><title></code> タグのデフォルト設定です。',
|
172 |
],
|
173 |
-
'
|
174 |
'title'=>'ディスクリプションの形式',
|
175 |
'reqired' => false,
|
176 |
'class' => 'sep',
|
143 |
<table class="form-table">
|
144 |
<tbody>
|
145 |
<?php $table_rows = [
|
146 |
+
'attachment_disable' => [
|
147 |
'title'=>'「メディア」を使用しない',
|
148 |
'reqired' => false,
|
149 |
'class' => '',
|
152 |
'prev' => false,
|
153 |
'desc' => '「はい」を選択すると「メディア」の個別ページへアクセスしても画像URLへとリダイレクトされます。',
|
154 |
],
|
155 |
+
'attachment_noindex' => [
|
156 |
'title'=>'「メディア」をインデックスさせない',
|
157 |
'reqired' => false,
|
158 |
'class' => '',
|
161 |
'prev' => false,
|
162 |
'desc' => '「はい」を選択するとデフォルトの出力が <code>noindex</code> となります。',
|
163 |
],
|
164 |
+
'attachment_title' => [
|
165 |
'title'=>'タイトルタグの形式',
|
166 |
'reqired' => false,
|
167 |
'class' => '',
|
170 |
'prev' => true,
|
171 |
'desc' => '「メディア」( <code>attachment</code> )の記事に出力する <code><title></code> タグのデフォルト設定です。',
|
172 |
],
|
173 |
+
'attachment_desc' => [
|
174 |
'title'=>'ディスクリプションの形式',
|
175 |
'reqired' => false,
|
176 |
'class' => 'sep',
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.3.2
|
7 |
-
Stable tag: 1.2.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -109,6 +109,9 @@ wp_head内( `_wp_render_title_tag` )で出力される`title`タグは削除す
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
112 |
= 1.2.4 =
|
113 |
Update to support WordPress 5.3.
|
114 |
|
4 |
Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 5.3.2
|
7 |
+
Stable tag: 1.2.5
|
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.2.5 =
|
113 |
+
Fixed a bug that the description setting of the tag page was not reflected.
|
114 |
+
|
115 |
= 1.2.4 =
|
116 |
Update to support WordPress 5.3.
|
117 |
|
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 simple SEO plugin. Meta tags and OGP tags can be easily set and customized for each page type and post.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: LOOS WEB STUDIO
|
8 |
* Author URI: https://loos-web-studio.com/
|
9 |
* License: GPL2 or later
|
@@ -34,7 +34,7 @@ if ( (double) $phpver < 5.6 ) {
|
|
34 |
* 定数宣言
|
35 |
*/
|
36 |
if ( ! defined( 'SSP_VERSION' ) ) {
|
37 |
-
define( 'SSP_VERSION', '1.2.
|
38 |
}
|
39 |
if ( ! defined( 'SSP_FILE' ) ) {
|
40 |
define( 'SSP_FILE', __FILE__ );
|
3 |
* Plugin Name: SEO SIMPLE PACK
|
4 |
* Plugin URI: https://wemo.tech/1670
|
5 |
* Description: A simple SEO plugin. Meta tags and OGP tags can be easily set and customized for each page type and post.
|
6 |
+
* Version: 1.2.5
|
7 |
* Author: LOOS WEB STUDIO
|
8 |
* Author URI: https://loos-web-studio.com/
|
9 |
* License: GPL2 or later
|
34 |
* 定数宣言
|
35 |
*/
|
36 |
if ( ! defined( 'SSP_VERSION' ) ) {
|
37 |
+
define( 'SSP_VERSION', '1.2.5' );
|
38 |
}
|
39 |
if ( ! defined( 'SSP_FILE' ) ) {
|
40 |
define( 'SSP_FILE', __FILE__ );
|