Meta Manager - Version 1.0.6

Version Description

  • Bug fix: When common keywords is empty,unnecessary comma exists.
  • Compatible up to: 3.5
Download this release

Release Info

Developer jim912
Plugin Icon wp plugin Meta Manager
Version 1.0.6
Comparing to
See all releases

Code changes from version 1.0.5 to 1.0.6

Files changed (2) hide show
  1. meta-manager.php +7 -2
  2. readme.txt +6 -2
meta-manager.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
  /**
3
  * @package Meta Manager
4
- * @version 1.0.5
5
  */
6
  /*
7
  Plugin Name: Meta Manager
8
  Plugin URI: http://www.warna.info/
9
  Description: Outputs meta description and meta keywords in the element head.
10
  Author: Hitoshi Omagari
11
- Version: 1.0.5
12
  Author URI: http://www.warna.info/
13
  */
14
 
@@ -310,6 +310,11 @@ private function get_unique_keywords() {
310
  $keywords = implode( ',', $keywords );
311
  $keywords = preg_replace( '/[, ]*,[, ]*/', ',', $keywords );
312
  $keywords = explode( ',', $keywords );
 
 
 
 
 
313
  $keywords = array_map( 'trim', $keywords );
314
  $keywords = array_unique( $keywords );
315
  }
1
  <?php
2
  /**
3
  * @package Meta Manager
4
+ * @version 1.0.6
5
  */
6
  /*
7
  Plugin Name: Meta Manager
8
  Plugin URI: http://www.warna.info/
9
  Description: Outputs meta description and meta keywords in the element head.
10
  Author: Hitoshi Omagari
11
+ Version: 1.0.6
12
  Author URI: http://www.warna.info/
13
  */
14
 
310
  $keywords = implode( ',', $keywords );
311
  $keywords = preg_replace( '/[, ]*,[, ]*/', ',', $keywords );
312
  $keywords = explode( ',', $keywords );
313
+ foreach ( $keywords as $key => $keyword ) {
314
+ if ( ! $keyword ) {
315
+ unset( $keywords[$key] );
316
+ }
317
+ }
318
  $keywords = array_map( 'trim', $keywords );
319
  $keywords = array_unique( $keywords );
320
  }
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: jim912
3
  Tags: SEO, keywords, description
4
  Requires at least: 3.0
5
- Tested up to: 3.4
6
- Stable tag: 1.0.5
7
 
8
  Outputs meta description and meta keywords in the element head.
9
 
@@ -12,6 +12,10 @@ Outputs meta description and meta keywords in the element head.
12
  Notice! Current version japanese only, yet.
13
 
14
  == Changelog ==
 
 
 
 
15
  = 1.0.5 =
16
  * add filter hook "meta_manager_meta_box_display"
17
  * Meta Manager meta is box displayed in public post type only.
2
  Contributors: jim912
3
  Tags: SEO, keywords, description
4
  Requires at least: 3.0
5
+ Tested up to: 3.6 beta 2
6
+ Stable tag: 1.0.6
7
 
8
  Outputs meta description and meta keywords in the element head.
9
 
12
  Notice! Current version japanese only, yet.
13
 
14
  == Changelog ==
15
+ = 1.0.6 =
16
+ * Bug fix: When common keywords is empty,unnecessary comma exists.
17
+ * Compatible up to: 3.5
18
+
19
  = 1.0.5 =
20
  * add filter hook "meta_manager_meta_box_display"
21
  * Meta Manager meta is box displayed in public post type only.