WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#35607 closed defect (bug) (fixed)

Inline Docs: Update incorrect docs for HTTP functions

Reported by: kraftbj Owned by: SergeyBiryukov
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: HTTP API Keywords: has-patch
Focuses: docs Cc:
PR Number:

Description

is_allowed_http_origin function inline docs state the return is True if the origin is allowed. False otherwise., which is not true.

The return is the result of get_http_origin (or the passed value) or an empty string.

Attachments (1)

35607.diff (927 bytes) - added by kraftbj 4 years ago.
Updates inline docs

Download all attachments as: .zip

Change History (3)

@kraftbj
4 years ago

Updates inline docs

#1 @kraftbj
4 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.5

#2 @SergeyBiryukov
4 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 36398:

Docs: Correct return value for is_allowed_http_origin().

Props kraftbj.
Fixes #35607.

Note: See TracTickets for help on using tickets.