Skip to content

Co-Authors Plus 4.0.2

Choose a tag to compare

@GaryJones GaryJones released this 29 Apr 15:54
· 143 commits to main since this release
4.0.2
5c67be3

Changed

  • coauthors_links_single() now reads display_name, website, and user_url directly from the passed $author object rather than via get_the_author() / get_the_author_meta(). This fixes the long-standing bug where every byline rendered as the first author's name and where guest-author websites never linked, but it does mean the_author, the_author_meta, and author_meta filters no longer apply when the function is called. Plugins that previously hooked those filters to amend bylines will need to filter at a different layer by @faisalahammad in #1255

Fixed

  • Stop the editor dropping the current user when a co-author term can't be resolved, and never persist a termless post on REST save by @GaryJones in #1253
  • Render each guest author's own name and website on bylines emitted via coauthors_links() / coauthors_links_single() (was duplicating the first author and dropping guest-author website links), fixing #1131 by @faisalahammad in #1255
  • Extend author SQL filters to support author__in and comma-separated author IDs by @faisalahammad in #1249
  • Clear conflicting WP_Query flags on guest author pages to prevent PHP warnings and category-query conflicts by @faisalahammad in #1250

Maintenance

  • Extract shared taxonomy clause helpers in posts_where_filter() to deduplicate the multi-author query path by @faisalahammad in #1251
  • Tear down CoAuthors_Template_Filters registrations between test cases to stop them leaking into other suites by @GaryJones in #1256
  • Exclude AGENTS.md and CONTRIBUTING.md from the distribution ZIP by @GaryJones in #1246

Documentation

Full Changelog: 4.0.1...4.0.2