Make WordPress Core

Opened 11 years ago

Closed 10 years ago

Last modified 4 months ago

#23115 closed enhancement (invalid)

Refactor to accept an array of attachment ids rather than shortcode

Reported by: nd987's profile nd987 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:


In /wp-includes/js/media-editor.js, line 175, the method is too closely coupled to the shortcode. This makes it impossible to fetch Attachments without first creating a shortcode to pass in.

A better approach would be to accept an array of attachment ids or a hash of properties; more than just shortcodes need to fetch Attachments by their ids.

Change History (1)

#1 @wonderboymusic
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Thanks for the report. That function is a helper for, it is not really intended to be used for general-use querying. will do that.

Note: See TracTickets for help on using tickets.