Version Description
- Minor bug fixes.
Download this release
Release Info
Developer | looswebstudio |
Plugin | SEO SIMPLE PACK |
Version | 2.4.2 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.4.2
- class/output.php +11 -5
- readme.txt +4 -1
- seo-simple-pack.php +1 -1
class/output.php
CHANGED
@@ -212,6 +212,7 @@ class SSP_Output {
|
|
212 |
switch ( true ) {
|
213 |
|
214 |
case is_front_page():
|
|
|
215 |
$title = $settings['home_title'];
|
216 |
break;
|
217 |
|
@@ -284,7 +285,6 @@ class SSP_Output {
|
|
284 |
* @return string : The meta:robots.
|
285 |
*/
|
286 |
private static function generate_robots() {
|
287 |
-
|
288 |
$settings = SSP_Data::$settings;
|
289 |
|
290 |
// default
|
@@ -292,15 +292,20 @@ class SSP_Output {
|
|
292 |
switch ( true ) {
|
293 |
|
294 |
case is_front_page():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
$robots = '';
|
296 |
break;
|
297 |
|
298 |
case is_singular():
|
299 |
case is_home():
|
300 |
-
if ( ! isset( self::$obj->ID ) )
|
301 |
-
$robots = 'noindex'; // ?cat=ネガティブid の is_home なページ
|
302 |
-
break;
|
303 |
-
};
|
304 |
|
305 |
$meta_robots = get_post_meta( self::$obj->ID, SSP_MetaBox::POST_META_KEYS['robots'], true );
|
306 |
if ( $meta_robots ) {
|
@@ -430,6 +435,7 @@ class SSP_Output {
|
|
430 |
switch ( true ) {
|
431 |
|
432 |
case is_front_page():
|
|
|
433 |
$description = $settings['home_desc'] ?: '%_tagline_%';
|
434 |
break;
|
435 |
|
212 |
switch ( true ) {
|
213 |
|
214 |
case is_front_page():
|
215 |
+
case is_home() && null === self::$obj: // 「投稿ページ」しか設定されていないときのトップ
|
216 |
$title = $settings['home_title'];
|
217 |
break;
|
218 |
|
285 |
* @return string : The meta:robots.
|
286 |
*/
|
287 |
private static function generate_robots() {
|
|
|
288 |
$settings = SSP_Data::$settings;
|
289 |
|
290 |
// default
|
292 |
switch ( true ) {
|
293 |
|
294 |
case is_front_page():
|
295 |
+
case is_home() && null === self::$obj: // 「投稿ページ」しか設定されていないときのトップ
|
296 |
+
// ?cat=ネガティブid のページかどうか調べる
|
297 |
+
$cat_query = (int) get_query_var( 'cat', 0 );
|
298 |
+
if ( is_numeric( $cat_query ) && 0 > $cat_query ) {
|
299 |
+
$robots = 'noindex';
|
300 |
+
break;
|
301 |
+
}
|
302 |
+
|
303 |
$robots = '';
|
304 |
break;
|
305 |
|
306 |
case is_singular():
|
307 |
case is_home():
|
308 |
+
if ( ! isset( self::$obj->ID ) ) break;
|
|
|
|
|
|
|
309 |
|
310 |
$meta_robots = get_post_meta( self::$obj->ID, SSP_MetaBox::POST_META_KEYS['robots'], true );
|
311 |
if ( $meta_robots ) {
|
435 |
switch ( true ) {
|
436 |
|
437 |
case is_front_page():
|
438 |
+
case is_home() && null === self::$obj: // 「投稿ページ」しか設定されていないときのトップ
|
439 |
$description = $settings['home_desc'] ?: '%_tagline_%';
|
440 |
break;
|
441 |
|
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.9
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 2.4.
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -121,6 +121,9 @@ The following hooks are available.
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
124 |
= 2.4.1 =
|
125 |
- Support for WordPress 6.0.
|
126 |
|
4 |
Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 2.4.2
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
121 |
|
122 |
== Changelog ==
|
123 |
|
124 |
+
= 2.4.2 =
|
125 |
+
- Minor bug fixes.
|
126 |
+
|
127 |
= 2.4.1 =
|
128 |
- Support for WordPress 6.0.
|
129 |
|
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.4.
|
7 |
* Author: LOOS,Inc.
|
8 |
* Author URI: https://loos-web-studio.com/
|
9 |
* License: GPL2 or later
|
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.4.2
|
7 |
* Author: LOOS,Inc.
|
8 |
* Author URI: https://loos-web-studio.com/
|
9 |
* License: GPL2 or later
|