Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#35607 closed defect (bug) (fixed)

Inline Docs: Update incorrect docs for HTTP functions

Reported by: kraftbj's profile kraftbj Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: HTTP API Keywords: has-patch
Focuses: docs Cc:


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 8 years ago.
Updates inline docs

Download all attachments as: .zip

Change History (3)

8 years ago

Updates inline docs

#1 @kraftbj
8 years ago

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

#2 @SergeyBiryukov
8 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.