SEO SIMPLE PACK - Version 1.2.9

Version Description

Fixed translation.

Download this release

Release Info

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

Code changes from version 1.2.8 to 1.2.9

inc/page_top.php CHANGED
@@ -24,7 +24,7 @@
24
  <?php
25
  if ( $is_updated ) {
26
  echo '<div id="ssp_updated" class="updated notice is-dismissible">'.
27
- '<p><strong>'. __('Your settings have been saved.'. LOOS_SSP_DOMAIN ) .'</strong></p>'.
28
  '<button type="button" class="notice-dismiss">'.
29
  '<span class="screen-reader-text">'. __('Hide this notification.', LOOS_SSP_DOMAIN ) .'</span>'.
30
  '</button>'.
24
  <?php
25
  if ( $is_updated ) {
26
  echo '<div id="ssp_updated" class="updated notice is-dismissible">'.
27
+ '<p><strong>'. __('Your settings have been saved.', LOOS_SSP_DOMAIN ) .'</strong></p>'.
28
  '<button type="button" class="notice-dismiss">'.
29
  '<span class="screen-reader-text">'. __('Hide this notification.', LOOS_SSP_DOMAIN ) .'</span>'.
30
  '</button>'.
languages/loos-ssp-ja.mo CHANGED
Binary file
languages/loos-ssp-ja.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: SEO SIMPLE PACK\n"
4
- "POT-Creation-Date: 2020-08-06 21:43+0900\n"
5
- "PO-Revision-Date: 2020-08-06 21:43+0900\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ja\n"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: SEO SIMPLE PACK\n"
4
+ "POT-Creation-Date: 2020-08-06 21:47+0900\n"
5
+ "PO-Revision-Date: 2020-08-07 23:28+0900\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ja\n"
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.5
7
- Stable tag: 1.2.8
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,10 @@ wp_head内( `_wp_render_title_tag` )で出力される`title`タグは削除す
109
 
110
  == Changelog ==
111
 
 
 
 
 
112
  = 1.2.8 =
113
  - Fixed some code.
114
  - Added a little English translation.
4
  Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.6
6
  Tested up to: 5.5
7
+ Stable tag: 1.2.9
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.9 =
113
+ Fixed translation.
114
+
115
+
116
  = 1.2.8 =
117
  - Fixed some code.
118
  - Added a little English translation.
seo-simple-pack.php CHANGED
@@ -3,38 +3,20 @@
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.8
7
  * Author: LOOS WEB STUDIO
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  * Text Domain: loos-ssp
12
  */
13
-
14
  if ( ! defined( 'ABSPATH' ) ) exit;
15
 
16
- /**
17
- * PHPバージョン5.6以上のみ使用可能の警告
18
- */
19
- $phpver = phpversion();
20
- if ( (double) $phpver < 5.6 ) {
21
- add_action( 'admin_notices', function() { ?>
22
- <div class="notice notice-error is-dismissible">
23
- <p>
24
- <b>[ SEO SIMPLE PACK ]</b><br>
25
- This Plugin is available in PHP since version 5.6 ! <br> (Your PHP is ver. <?php echo phpversion(); ?> )
26
- </p>
27
- </div> <?php
28
- } );
29
- return;
30
- }
31
-
32
-
33
  /**
34
  * 定数宣言
35
  */
36
  if ( ! defined( 'SSP_VERSION' ) ) {
37
- define( 'SSP_VERSION', ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? date('mdGis') : '1.2.8');
38
  }
39
  if ( ! defined( 'SSP_FILE' ) ) {
40
  define( 'SSP_FILE', __FILE__ );
@@ -61,7 +43,10 @@ if ( ! defined( 'LOOS_SSP_DOMAIN' ) ) {
61
  /**
62
  * 翻訳ファイルを登録 ( 自前の翻訳ファイルを読み込む )
63
  */
64
- load_textdomain( LOOS_SSP_DOMAIN, SSP_PATH . 'languages/loos-ssp-ja.mo');
 
 
 
65
  // load_plugin_textdomain( LOOS_SSP_DOMAIN, false, basename( SSP_PATH ) .'/languages' );
66
 
67
 
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.9
7
  * Author: LOOS WEB STUDIO
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  * Text Domain: loos-ssp
12
  */
 
13
  if ( ! defined( 'ABSPATH' ) ) exit;
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  /**
16
  * 定数宣言
17
  */
18
  if ( ! defined( 'SSP_VERSION' ) ) {
19
+ define( 'SSP_VERSION', ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? date('mdGis') : '1.2.9');
20
  }
21
  if ( ! defined( 'SSP_FILE' ) ) {
22
  define( 'SSP_FILE', __FILE__ );
43
  /**
44
  * 翻訳ファイルを登録 ( 自前の翻訳ファイルを読み込む )
45
  */
46
+ // 翻訳
47
+ $locale = apply_filters( 'plugin_locale', determine_locale(), 'loos-ssp' );
48
+ load_textdomain( 'loos-ssp', SSP_PATH . 'languages/loos-ssp-' . $locale . '.mo' );
49
+
50
  // load_plugin_textdomain( LOOS_SSP_DOMAIN, false, basename( SSP_PATH ) .'/languages' );
51
 
52