WordPress.org

Make WordPress Core

Opened 10 months ago

Closed 9 months ago

#24571 closed defect (bug) (fixed)

get_attached_file inline doc is confused about default filtering of path

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

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 10 months ago.

Download all attachments as: .zip

Change History (4)

comment:1 DrewAPicture10 months ago

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

Introduced in [8203].

comment:2 wonderboymusic9 months ago

  • Milestone changed from Awaiting Review to 3.7

these are all marked 3.7-early

comment:3 nacin9 months 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.