Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing author column in wp-admin Posts table #1038

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

GaryJones
Copy link
Contributor

@GaryJones GaryJones commented Apr 25, 2024

Description

In CAP 3.6.0, there was a bug that resulted in the author's column missing in wp-admin Posts table. When removing the author dropdown from the quick edit box, the old logic removed post type support for the CAP-registered author taxonomy, which has the same name as the regular author feature. This hard-hitting removal was likely due to the "inconvenient truths" documented in #1036.

The new logic has a more targeted approach - it updates the query args for getting the quick-edit authors list population to only try and include a 0, and this successfully bails the dropdown from being displayed.

Fixes #1033.
Fixed #1037.
Closes #1036.

Steps to Test

Use 3.6.0 tag and see that the author column is missing. Switch to the PR branch, and see that the author column is present. In both cases, the quick edit does not show the author box.

Screenshots

3.6.0

Author column not present (incorrect):

Screenshot 2024-04-25 at 16 06 22

This PR

Author column present (correct):

Screenshot 2024-04-25 at 16 06 35

Quick Edit view does not include author box (correct):

Screenshot 2024-04-25 at 16 05 50

(For comparison, here's what the view would look like with the author box - we don't want this):

Screenshot 2024-04-25 at 16 05 15

@GaryJones
Copy link
Contributor Author

Tests failing for PHP 7.1 will be handled via #1034. They can be ignored for this PR.

@douglas-johnson
Copy link
Contributor

This is working for me locally with WP 6.5.2

I think this also resolves #1037

@justinmaurerdotdev
Copy link

Love it. I've checked out this branch and it looks like everything works as expected.

@GaryJones GaryJones merged commit ab5ee8e into develop Apr 25, 2024
13 of 15 checks passed
@GaryJones GaryJones deleted the fix/missing-authors-column branch April 25, 2024 16:10
This was referenced Apr 25, 2024
@alecgeatches
Copy link
Contributor

This fix has been merged and included in the 3.6.1 release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants