Version Description
- Bug fix: Notice error occured when not exists keyword or description post data.
- Compatible up to: 4.0
Download this release
Release Info
Developer | jim912 |
Plugin | Meta Manager |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.7
- meta-manager.php +15 -10
- readme.txt +6 -2
meta-manager.php
CHANGED
@@ -120,20 +120,25 @@ public function edit_keywords_form( $tag ) {
|
|
120 |
|
121 |
|
122 |
public function update_term_meta( $term_id ) {
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
}
|
131 |
-
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
}
|
136 |
|
|
|
137 |
public function delete_term_meta( $term_id ) {
|
138 |
if ( isset( $this->term_keywords[$term_id] ) ) {
|
139 |
unset( $this->term_keywords[$term_id] );
|
120 |
|
121 |
|
122 |
public function update_term_meta( $term_id ) {
|
123 |
+
if ( isset( $_POST['meta_keywords'] ) ) {
|
124 |
+
$post_keywords = stripslashes_deep( $_POST['meta_keywords'] );
|
125 |
+
$post_keywords = $this->get_unique_keywords( $post_keywords );
|
126 |
+
if ( ! isset( $this->term_keywords[$term_id] ) || $this->term_keywords[$term_id] != $post_keywords ) {
|
127 |
+
$this->term_keywords[$term_id] = $post_keywords;
|
128 |
+
update_option( 'term_keywords', $this->term_keywords );
|
129 |
+
}
|
130 |
}
|
131 |
+
|
132 |
+
if ( isset( $_POST['meta_description'] ) ) {
|
133 |
+
$post_description = stripslashes_deep( $_POST['meta_description'] );
|
134 |
+
if ( ! isset( $this->term_description[$term_id] ) || $this->term_description[$term_id] != $post_description ) {
|
135 |
+
$this->term_description[$term_id] = $post_description;
|
136 |
+
update_option( 'term_description', $this->term_description );
|
137 |
+
}
|
138 |
}
|
139 |
}
|
140 |
|
141 |
+
|
142 |
public function delete_term_meta( $term_id ) {
|
143 |
if ( isset( $this->term_keywords[$term_id] ) ) {
|
144 |
unset( $this->term_keywords[$term_id] );
|
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:
|
6 |
-
Stable tag: 1.0.
|
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.6 =
|
16 |
* Bug fix: When common keywords is empty,unnecessary comma exists.
|
17 |
* Compatible up to: 3.5
|
2 |
Contributors: jim912
|
3 |
Tags: SEO, keywords, description
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 4.0
|
6 |
+
Stable tag: 1.0.7
|
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.7 =
|
16 |
+
* Bug fix: Notice error occured when not exists keyword or description post data.
|
17 |
+
* Compatible up to: 4.0
|
18 |
+
|
19 |
= 1.0.6 =
|
20 |
* Bug fix: When common keywords is empty,unnecessary comma exists.
|
21 |
* Compatible up to: 3.5
|