-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
changeChange to an existing but not broken featureChange to an existing but not broken feature
Description
As part of the news center migration, we decided that we will handle WordPress users and post authors separately. WordPress users, who can login and visit the WordPress dashboard, are not displayed anywhere on the site. Post authors, guest authors, etc., will be managed using the CoAuthors+ plugin.
Currently, the news syndication block, which is available as of v1.7.x of this plugin, combines and displays WordPress users and CoAuthors in the block output. We need to change this logic to:
If a CoAuthor isn't assigned, display the Public Affairs CoAuthor (not the Public Affairs WordPress user) as the author.
ucsc-custom-functionality/src/Components/News_Block_Controller.php
Lines 153 to 159 in 60449e1
| protected function get_authors(array $item): array { | |
| if ( empty( $item['author'] ) && empty( $item['coauthors'] ) ) { | |
| return []; | |
| } | |
| $authors = []; | |
Metadata
Metadata
Labels
changeChange to an existing but not broken featureChange to an existing but not broken feature