Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#38582 closed defect (bug) (fixed)

REST API: Support password-protected posts for types other than 'post'

Reported by: jnylen0's profile jnylen0 Owned by: rmccue's profile rmccue
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.7
Component: REST API Keywords: has-patch has-unit-tests
Focuses: Cc:

Description

From https://github.com/WP-API/WP-API/pull/2720:

Post Types other than post no longer have support (or the property) for password.

Why is this only supported for post? In my testing, it works for pages and custom post types as well. Unless there is a good reason not to, we should support this equally for all post types.

Attachments (1)

38582.diff (7.3 KB) - added by jnylen0 8 years ago.

Download all attachments as: .zip

Change History (4)

@jnylen0
8 years ago

#1 @jnylen0
8 years ago

  • Keywords has-patch has-unit-tests added

#2 @rmccue
8 years ago

  • Milestone changed from Awaiting Review to 4.7
  • Owner set to rmccue
  • Status changed from new to assigned
  • Type changed from enhancement to defect (bug)

#3 @rmccue
8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 39047:

REST API: Support password on non-post post types.

The password field was incorrectly only added to "post" post types, but is supported for all post types in the Dashboard UI.

Props jnylen0.
Fixes #38582.

Note: See TracTickets for help on using tickets.