[wp-trac] [WordPress Trac] #23572: Add functions to parse Audio / Video data out of arbitrary content or a post

WordPress Trac noreply at wordpress.org
Tue Mar 26 00:08:23 UTC 2013


#23572: Add functions to parse Audio / Video data out of arbitrary content or a
post
----------------------------------------+------------------
 Reporter:  wonderboymusic              |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  3.6
Component:  Post Formats                |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |
----------------------------------------+------------------

Comment (by DrewAPicture):

 Replying to [comment:13 lancewillett]:
 > Right now we'll constrain the display with CSS, but ideally we'd be able
 to use the HTML that was inserted into the editor so we get the correctly
 sized `img` output HTML without having to rebuild it.

 Replying to [comment:14 wonderboymusic]:
 > yes, I can see how that is weird - its probably easy to change it to
 just return the HTML and skip the `src` regex - I will take a look tonight

 I think we need to be careful about pigeonholing ourselves into ''only''
 returning the source or a built HTML tag.

 Sometimes people want the source, sometimes they want the markup and using
 a bool `$src` parameter or similar could accomplish that.

 I'd just like to see us avoid a situation where we need two functions to
 do basically the same thing with a different return, such as with
 `wp_get_attachment_image()` and `wp_get_attachment_image_src()`

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


More information about the wp-trac mailing list