[wp-trac] [WordPress Trac] #24202: Self-explanatory argument values for new media functions

WordPress Trac noreply at wordpress.org
Wed Jul 10 22:55:46 UTC 2013


#24202: Self-explanatory argument values for new media functions
------------------------------------+--------------------
 Reporter:  SergeyBiryukov          |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  high                    |   Milestone:  3.6
Component:  Media                   |     Version:  trunk
 Severity:  major                   |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+--------------------

Comment (by DrewAPicture):

 Replying to [comment:16 nacin]:

 I'd like to make a case for keeping the shortcode parsing logic in
 `get_content_media()`, maybe rolling it into something different like
 `get_shortcodes_in_content()`. It would be a good compliment to
 `get_media_embedded_in_content()` (media tags), and
 `get_images_from_content()` (images). Shortcodes, media tags, images.

 There are many many more shortcodes out there than audio or video and I
 think keeping this logic would open some doors to some other interesting
 use cases, regardless of whether it's used by core or not.

 Finally, I'd like to see us at least make that type array in
 `get_embedded_media|get_media_embedded_in_content()` filterable if we're
 going to remove the `$type` parameter.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24202#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list