-
Notifications
You must be signed in to change notification settings - Fork 206
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
CSS hack for hiding Gutenberg post_author no longer works redux #825
Comments
@lschuyler Can you look at this? |
Hi @gamebits: I'm not able to reproduce this with the latest version of WordPress and Co-Authors Plus with no other plugins installed, using the Twenty Twenty-One theme. Can you tell me a bit more about the set-up where you are seeing this issue? WordPress version? Version of Co-Authors Plus? Thanks! |
Progress! This can be replicated as soon as there are over 25 authors. Gutenberg in WordPress core changes the type of author select combobox when there are 25 or more authors, and this isn't being hidden by the previous CSS change. So where the current CSS hack works, as soon as there are over 25 authors, the type of select box changes, and the hack no longer targets the CSS class. To fix, this hack can be expanded to also hide this >25 author select combobox class that Gutenberg uses, however there isn't a precise ID or class that can be targeted, so there is a possibility that this will hide any similar combobox added to the same area of the edit page by any other plugin. A better plan for the future may be to hook into Gutenberg to prevent the author box from being added to the page, or better yet, replace it with CAP's author selector. |
Confirmed. We aren't using the author box from core anymore, so this is no longer a relevant issue. CSS hack removed in #847. |
This is a recurrence of #791 that was addressed in #793. The "Author" dropdown is again being displayed, despite Co-Authors Plus being active and inserting its own "Authors" field.
I've thus far been unsuccessful in determining what change to WordPress or Gutenberg broke the prior fix, or what new CSS should be targeted.
The text was updated successfully, but these errors were encountered: