Opened 9 years ago
Last modified 7 years ago
#36691 new enhancement
Ability to disable "Password Protected" post option
Reported by: | paulschreiber | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Role/Capability | Keywords: | needs-patch |
Focuses: | Cc: |
Description
We don't want any of our posts accidentally being published as "password protected."
It would be helpful to have a filter to disable that part of the UI.
Attachments (1)
Change History (8)
This ticket was mentioned in Slack in #core by paulschreiber. View the logs.
8 years ago
#3
follow-up:
↓ 4
@
8 years ago
- Component changed from General to Role/Capability
- Keywords needs-patch added; has-patch removed
#4
in reply to:
↑ 3
@
8 years ago
Replying to swissspidy:
There are
delete_private_posts
,edit_private_posts
andread_private_posts
— so what about addingpublish_private_posts
?
Private ≠ password protected though, so this might be confusing.
#24669 offers another approach: 'Password protected' and 'Private' should be two separate post type features.
#5
follow-up:
↓ 6
@
8 years ago
#24669 is three years old and closed.
I'm currently using CSS to disable this, which is a bit of a hack. Adding capabilities for password-protected posts seems like a time-consuming and involved operation. This patch is small / fast / safer. Can we consider including it in 4.6 or 4.7?
#6
in reply to:
↑ 5
@
8 years ago
- Version trunk deleted
Replying to paulschreiber:
This patch is small / fast / safer. Can we consider including it in 4.6 or 4.7?
It's not safer. You still can add a password when you add the required HTML back into the page. For 4.6 it's too late since we're already in beta.
P.S.: Actions and filters need to be documented, see https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/#4-hooks-actions-and-filters.
This should rather be a new capability instead of a filter. There are other ways to create password protected posts, so a filter to disable the form on the post edit screen is not enough.
There are
delete_private_posts
,edit_private_posts
andread_private_posts
— so what about addingpublish_private_posts
? Perhaps it could by default map toedit_private_posts
orpublish_posts
.