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

Hide author section in editor for WP 5.6 and higher #793

Merged
merged 1 commit into from May 26, 2021
Merged

Conversation

nielslange
Copy link
Member

Fixes #791

Note

Hide the author section from the editor for WordPress >= 5.6.

Steps to test

  1. Check out this PR
  2. Ensure to test this PR against WordPress 5.6 or higher
  3. Go to /wp-admin/post-new.php and /wp-admin/post-new.php?post_type=page
  4. See that the author section is no longer visible in the sidebar
Before:

#791-before

After:

#791-after

Copy link
Contributor

@rebeccahum rebeccahum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@rebeccahum rebeccahum merged commit 967b261 into master May 26, 2021
@rebeccahum rebeccahum deleted the update/#791 branch May 26, 2021 21:05
@rebeccahum
Copy link
Contributor

Just making note that this only works for 5.7 and higher since in 5.6, there's no post-author-selector class for the author box.

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

Successfully merging this pull request may close these issues.

CSS hack for hiding Gutenberg post_author no longer works.
2 participants