Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#24571 closed defect (bug) (fixed)

get_attached_file inline doc is confused about default filtering of path

Reported by: devesine Owned by: nacin
Priority: normal Milestone: 3.7
Component: Inline Docs Version: 2.6
Severity: trivial Keywords: has-patch 3.7-early
Cc: Focuses:

Description

get_attached_file claims:

* You can optionally send it through the 'get_attached_file' filter, but by
* default it will just return the file path unfiltered.

but the default parameter is $unfiltered = false. Attached patch restores doc to honesty.

Attachments (1)

24571-get_attached_file.diff​ (695 bytes ) - added by devesine 13 years ago.

Download all attachments as: .zip

Change History (4)

#1 @DrewAPicture
13 years ago

  • Keywords 3.7-early added
  • Version trunk → 2.6

Introduced in [8203].

#2 @wonderboymusic
13 years ago

  • Milestone Awaiting Review → 3.7

these are all marked 3.7-early

#3 @nacin
13 years ago

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

In 24983:

In get_attached_file(), fix the explanation of when the filter is bypassed. props devesine, fixes #24571.

Note: See TracTickets for help on using tickets.