Skip to content

Commit

Permalink
(fix)baseStyle: update deprecated wp_no_robots function
Browse files Browse the repository at this point in the history
* (fix)baseStyle: updated deprecated function, preserve backwards compatibility

* (fix)baseStyle: updated deprecated function, removed backwards support
  • Loading branch information
timohubois authored Aug 26, 2021
1 parent 371abbb commit d38b7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/baseStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function templateInclude($template)

if (isset($wp_query->query_vars[ROUTENAME])) {
setDocumentTitle();
add_action('wp_head', 'wp_no_robots');
add_filter('wp_robots', 'wp_robots_no_robots');
return get_template_directory() . '/basestyle.php';
}

Expand Down

0 comments on commit d38b7e3

Please sign in to comment.