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

Fixes CoAuthors Plus & Elementor Archive Pages conflict. #905 #926

Closed mattpramschufer closed 1 year ago

mattpramschufer commented 1 year ago

Description

Fixes issue where fix_author_page() makes every post show on the author archive page be the same author as the archive author. This is an issue when you have a sidebar that lists out posts from site that do not belong to the archive author.

Deploy Notes

Are there any new dependencies added that should be taken into account when deploying to WordPress.org?

Steps to Test

Outline the steps to test and verify the PR here.

Example:

  1. Check out PR.
  2. Do stuff
GaryJones commented 1 year ago

Reverted with #970. It was found that in some circumstances, the author archive either had the wrong author data or missing data. Please see #969 as an example (I had other reports too).

We'll want to look at why fix_author_page() is hooked to both the_post and posts_selection and find a better way to target the situation that Elementor archive pages seem to create.