Skip to content

Commit 0d83d96

Browse files
1 parent f3a3e74 commit 0d83d96

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

output/function.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,9 +1852,12 @@ function saswp_get_the_tags(){
18521852

18531853
$meta_tag = array_column($post_meta, 'value');
18541854
$key = array_search("keywords",$meta_tag);
1855-
1856-
if(array_key_exists($key, $post_meta)){
1857-
$tag_str = $post_meta[$key]['content'];
1855+
if(!empty($key)){
1856+
if(is_numeric($key) || is_string($key)){
1857+
if(array_key_exists($key, $post_meta)){
1858+
$tag_str = $post_meta[$key]['content'];
1859+
}
1860+
}
18581861
}
18591862

18601863
}

0 commit comments

Comments
 (0)