Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24571 closed defect (bug) (fixed)

get_attached_file inline doc is confused about default filtering of path

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


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

Download all attachments as: .zip

Change History (4)

#1 @DrewAPicture
11 years ago

  • Keywords 3.7-early added
  • Version changed from trunk to 2.6

Introduced in [8203].

#2 @wonderboymusic
11 years ago

  • Milestone changed from Awaiting Review to 3.7

these are all marked 3.7-early

#3 @nacin
11 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to 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.