Here’s the section that’s causing the error. It’s the line that says “$current_relative_url=”…
====================================================
/**
* Add noindex/nofollow to custom posts to not allow search engines to index custom posts.
*/
public function robots() {
if ( isset($this->options->noindex_custom_post) && $this->options->noindex_custom_post ) {
global $wp;
$current_relative_url = trailingslashit(add_query_arg($_SERVER[‘QUERY_STRING’], ”, trailingslashit($wp->request)));
if ( strpos($current_relative_url, ‘bwg_gallery’) !== FALSE
|| strpos($current_relative_url, ‘bwg_album’) !== FALSE
|| strpos($current_relative_url, ‘bwg_tag’) !== FALSE ) {
echo ‘<meta name=”robots” content=”noindex,nofollow” />’ . “\n”;
}
}
}