Created
October 26, 2017 07:59
-
-
Save scandiumby/3ffa362419dd36c518b44e7be8b0735a to your computer and use it in GitHub Desktop.
Fix for "Simple SEO by falbar" wordpress plugins (checking to blank metatags).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function get_meta_template($params){ | |
$tmp = "\n\r"; | |
$tmp .= '<!-- '.$this->plugin_name.' v '.$this->plugin_version.' -->'; | |
$tmp .= "\n"; | |
if ($params['description']){ | |
$tmp .= '<meta name="description" content="'.$params['description'].'" />'; | |
$tmp .= "\n"; | |
} | |
if ($params['keywords']){ | |
$tmp .= '<meta name="keywords" content="'.$params['keywords'].'" />'; | |
$tmp .= "\n"; | |
} | |
if($params['title']){ | |
$tmp .= '<title>'.$params['title'].'</title>'; | |
} | |
$tmp .= "\n"; | |
$tmp .= '<!--/ '.$this->plugin_name.' -->'; | |
$tmp .= "\n\r"; | |
return $tmp; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment