SEO SIMPLE PACK - Version 1.1.5

Version Description

apply_filters

Download this release

Release Info

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

Code changes from version 1.1.4 to 1.1.5

Files changed (3) hide show
  1. class/ssp_output.php +10 -23
  2. readme.txt +4 -1
  3. seo-simple-pack.php +2 -2
class/ssp_output.php CHANGED
@@ -137,12 +137,12 @@ class SSP_Output {
137
  */
138
  private static function generate_og_metas() {
139
 
140
- self::$og_locale = self::generate_og_locale();
141
- self::$og_type = self::generate_og_type();
142
  self::$og_image = self::generate_og_image();
143
- self::$og_facebook = self::generate_og_facebook();
144
- self::$og_twitter = self::generate_og_twitter();
145
- self::$og_tags = self::generate_general_ogp( );
146
 
147
  }
148
 
@@ -153,26 +153,19 @@ class SSP_Output {
153
  private static function output_og_metas() {
154
 
155
  if ( !empty( self::$og_locale ) ) {
156
-
157
  echo '<meta property="og:locale" content="'.esc_attr( self::$og_locale ).'">'."\n";
158
-
159
- }
160
-
161
- if ( !empty( self::$og_type ) ) {
162
-
163
- echo '<meta property="og:type" content="'.esc_attr( self::$og_type ).'">'."\n";
164
-
165
  }
166
 
167
  if ( !empty( self::$og_image ) ) {
168
  echo '<meta property="og:image" content="'.esc_url( self::$og_image ).'">'."\n";
169
  }
170
 
171
-
172
  if ( !empty( self::$og_tags ) ) {
173
-
174
  echo self::$og_tags;
 
175
 
 
 
176
  }
177
 
178
  if ( !empty( self::$og_facebook ) ) {
@@ -445,23 +438,17 @@ class SSP_Output {
445
  * @return string : OGP tags.
446
  */
447
  private static function generate_general_ogp( ) {
448
- //SSP_Branch::$is_
449
- $og_title = self::$title;
450
  $og_desc = apply_filters('ssp_output_og_description', self::$description );
451
  $og_url = apply_filters('ssp_output_og_url', self::$canonical );
452
 
453
- // if ( $is_[ 'singular' ] ) //
454
- // $og_title = self::$obj->post_title;
455
- // }
456
  $ogp = "";
457
-
458
-
459
  $ogp .= '<meta property="og:title" content="'.esc_attr( $og_title ).'">'."\n";
460
  $ogp .= '<meta property="og:description" content="'.esc_attr( $og_desc ).'">'."\n";
461
  $ogp .= '<meta property="og:url" content="'.esc_attr( $og_url ).'">'."\n";
462
  $ogp .= '<meta property="og:site_name" content="'.esc_attr( SSP_Data::$site_title ).'">'."\n";
463
 
464
-
465
  return $ogp;
466
 
467
  }
137
  */
138
  private static function generate_og_metas() {
139
 
140
+ self::$og_locale = self::generate_og_locale();
141
+ self::$og_type = self::generate_og_type();
142
  self::$og_image = self::generate_og_image();
143
+ self::$og_tags = self::generate_general_ogp( );
144
+ self::$og_facebook = self::generate_og_facebook();
145
+ self::$og_twitter = self::generate_og_twitter();
146
 
147
  }
148
 
153
  private static function output_og_metas() {
154
 
155
  if ( !empty( self::$og_locale ) ) {
 
156
  echo '<meta property="og:locale" content="'.esc_attr( self::$og_locale ).'">'."\n";
 
 
 
 
 
 
 
157
  }
158
 
159
  if ( !empty( self::$og_image ) ) {
160
  echo '<meta property="og:image" content="'.esc_url( self::$og_image ).'">'."\n";
161
  }
162
 
 
163
  if ( !empty( self::$og_tags ) ) {
 
164
  echo self::$og_tags;
165
+ }
166
 
167
+ if ( !empty( self::$og_type ) ) {
168
+ echo '<meta property="og:type" content="'.esc_attr( self::$og_type ).'">'."\n";
169
  }
170
 
171
  if ( !empty( self::$og_facebook ) ) {
438
  * @return string : OGP tags.
439
  */
440
  private static function generate_general_ogp( ) {
441
+
442
+ $og_title = apply_filters('ssp_output_og_title', self::$title );
443
  $og_desc = apply_filters('ssp_output_og_description', self::$description );
444
  $og_url = apply_filters('ssp_output_og_url', self::$canonical );
445
 
 
 
 
446
  $ogp = "";
 
 
447
  $ogp .= '<meta property="og:title" content="'.esc_attr( $og_title ).'">'."\n";
448
  $ogp .= '<meta property="og:description" content="'.esc_attr( $og_desc ).'">'."\n";
449
  $ogp .= '<meta property="og:url" content="'.esc_attr( $og_url ).'">'."\n";
450
  $ogp .= '<meta property="og:site_name" content="'.esc_attr( SSP_Data::$site_title ).'">'."\n";
451
 
 
452
  return $ogp;
453
 
454
  }
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.4
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.1.4 =
113
  1.1.3の通知が動作しなかったので再度更新
114
 
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.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.1.5 =
113
+ apply_filtersの設定漏れを修正
114
+
115
  = 1.1.4 =
116
  1.1.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: シンプルなSEOプラグイン。ページ種別・投稿ごとにmetaタグやOGPタグを簡単に設定・カスタマイズできます。
6
- Version: 1.1.4
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.4' );
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.5
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.5' );
61
  }
62
  if ( ! defined( 'SSP_FILE' ) ) {
63
  define( 'SSP_FILE', __FILE__ );