ocean90/public-post-preview

`wp_no_robots()` is deprecated since 5.7.0!

Closed this issue · 1 comments

Plugin uses:

add_action( 'wp_head', 'wp_no_robots' );

Core does:

https://github.com/WordPress/WordPress/blob/f80e5d09197bfded72e74140bc377e0e96fc3622/wp-includes/deprecated.php#L4175

Probably should swap, or do a conditional to swap if the new function exists, to avoid

Deprecated: wp_no_robots is deprecated since version 5.7.0! Use wp_robots_no_robots() instead. in /path/to/wp/wp-includes/functions.php on line 4861