[wp-trac] [WordPress Trac] #40783: More accurate media widgets instance schema

WordPress Trac noreply at wordpress.org
Wed May 17 08:05:57 UTC 2017


#40783: More accurate media widgets instance schema
--------------------------+-----------------------------
 Reporter:  obenland      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 `WP_Widget_Media::get_instance_schema()` currently covers not only the
 widget title but also `attachment_id` and `url` of an attachment. While in
 their current implementation media widgets are always based on a single
 attachment or URL, I'm not sure we can make the assumption that future
 implementations will continue to fit that model (like in a Gallery
 Widget).

 In an attempt to future-prove `WP_Widget_Media`, should we move
 `attachment_id` and `url` into the subclasses that actually use them?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40783>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list