• With the latest release (which fixed the missing robots meta) there are now two robot entries pulling through on the WP REST API. One in the first “yoast_meta” array position and another in the last position.

Viewing 1 replies (of 1 total)
  • That “bugfix” introduced in 2021.1.1 is actually not a fix but a bug. Yoast can handle wp_robots by itself since 15.9.1, no need to load that wp_robots() function before ->parse() because it eventually duplicates that meta tag and there is incorrect value in the REST API – different than in the yoast_head.

    For now I manually commented out those lines in class-frontend.php but a real fix is required (probably just as easy as adding version_compare( WPSEO_VERSION, '15.9.1', '<' ) next to version_compare( $wp_version, '5.7', '>=' )

Viewing 1 replies (of 1 total)
  • The topic ‘Robots Meta’ is closed to new replies.