WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 4 months ago

#38991 closed enhancement (fixed)

REST API: Add missing test for creating a comment with an invalid post ID

Reported by: jnylen0 Owned by: Jnylen0
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.7
Component: REST API Keywords: has-patch fixed-major commit
Focuses: Cc:

Description

#38816 fixed creating a comment with an invalid post ID (this should not be allowed), but we need a test for this.

Attachments (1)

38991.diff (1.3 KB) - added by jnylen0 4 months ago.

Download all attachments as: .zip

Change History (6)

@jnylen0
4 months ago

#1 @rachelbaker
4 months ago

  • Milestone changed from Awaiting Review to 4.7
  • Owner set to Jnylen0
  • Status changed from new to assigned

@jnylen0 Want to go ahead and commit this this for 4.7?

#2 @jnylen0
4 months ago

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

In 39375:

REST API: Add test for creating a comment with an invalid post ID.

#38816 fixed creating a comment with an invalid post ID (this should not be
allowed), but we need a test for this.

Fixes #38991.

#3 @jnylen0
4 months ago

Done in trunk. @rachelbaker seeing as how guest committers shall not pass to 4.7 during RC, can you handle the merge to the 4.7 branch?

#4 @ocean90
4 months ago

  • Keywords fixed-major commit added
  • Resolution fixed deleted
  • Status changed from closed to reopened

#5 @rachelbaker
4 months ago

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

In 39408:

REST API: Add test for creating a comment with an invalid post ID.

Props @jnylen0.

Merges [39375] to the 4.7 branch.
Fixes #38991 for 4.7.

Note: See TracTickets for help on using tickets.