Automattic / Co-Authors-Plus

Multiple bylines and Guest Authors for WordPress
https://wordpress.org/plugins/co-authors-plus/
GNU General Public License v2.0
290 stars 205 forks source link

fix(yoast): prevent no-indexing of guest authors' archive pages #912

Closed adekbadek closed 1 year ago

adekbadek commented 1 year ago

Description

Prevents Yoast plugin (wordpress-seo) from preventing the indexing of author archive pages.

Closes https://github.com/Yoast/wordpress-seo/issues/9147 Closes https://github.com/Automattic/newspack-plugin/issues/1506

Steps to Test

  1. On master, ensure Yoast plugin is active and visit a guest author's archive page
  2. View page source, observe the <meta name='robots' content='noindex, follow' /> tag is there – preventing search engines from indexing the site
  3. Switch to this branch, reload the page, observe the tag has now a different value (<meta name='robots' content='index, follow, max-image-preview:large' />), allowing for indexing