Minor bug in v2.1.0
-
On line 853 in add-meta-tags.php there is a reference to a potentially non-existent array key. The following is one option to fix the problem.
if ( !empty($content_keywords) && (is_single() || is_page()) ) { $options = get_option("add_meta_tags_opts"); //$global_keywords = $options["global_keywords"]; // here's the issue if (array_key_exists('global_keywords', $options) && !empty($options["global_keywords"])) { $global_keywords = $options["global_keywords"]; if ( strpos($global_keywords, '%contentkw%') ) { // The user has used the placeholder <code></code>%contentkw%<code></code>. Replace it with the content keywords. $content_keywords = str_replace('%contentkw%', $content_keywords, $global_keywords); } else { // The placeholder <code></code>%contentkw%<code></code> has not been used. Append the content keywords to the global keywords. $content_keywords = $global_keywords . ', ' . $content_keywords; } } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Minor bug in v2.1.0’ is closed to new replies.