WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 2 years ago

#42449 closed defect (bug) (fixed)

Fix filter documentation for wp_prepare_attachment_for_js

Reported by: danielbachhuber Owned by: SergeyBiryukov
Milestone: 5.1 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch
Focuses: docs Cc:

Description

$attachment is always an object, never an ID.

Attachments (1)

42449.1.diff (744 bytes) - added by danielbachhuber 4 years ago.

Download all attachments as: .zip

Change History (6)

#1 @SergeyBiryukov
3 years ago

  • Milestone changed from Future Release to 5.0

#2 @SergeyBiryukov
3 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 42345:

Docs: Correct $attachment parameter type for wp_prepare_attachment_for_js filter.

Props danielbachhuber.
Fixes #42449.

#3 @johnbillion
3 years ago

  • Milestone changed from 5.0 to 5.0.1
  • Resolution fixed deleted
  • Status changed from closed to reopened

#4 @pento
2 years ago

  • Milestone changed from 5.0.1 to 5.0.2

#5 @SergeyBiryukov
2 years ago

  • Milestone changed from 5.0.2 to 5.1
  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.