Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#35607 closed defect (bug) (fixed)

Inline Docs: Update incorrect docs for HTTP functions

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

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

Download all attachments as: .zip

Change History (3)

@kraftbj
11 years ago

Updates inline docs

#1 @kraftbj
11 years ago

  • Keywords has-patch added
  • Milestone Awaiting Review → 4.5

#2 @SergeyBiryukov
11 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 36398:

Docs: Correct return value for is_allowed_http_origin().

Props kraftbj.
Fixes #35607.

Note: See TracTickets for help on using tickets.