[wp-trac] [WordPress Trac] #34808: Deprecate get_media_embedded_in_content() and get_tag_regex()

WordPress Trac noreply at wordpress.org
Sat Nov 28 05:08:56 UTC 2015


#34808: Deprecate get_media_embedded_in_content() and get_tag_regex()
-------------------------------+----------------------------
 Reporter:  azaozz             |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Future Release
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+----------------------------
 Both are "dead" functions not used anywhere in core. Seem like left overs
 from the post types code in 3.6.

 `get_media_embedded_in_content()` is buggy: cannot handle nested
 `<object>` tags (which were popular few years ago for flash movies) and
 doesn't match short ended tags without a backslash at the end.

 `get_tag_regex()` is buggy too, see #26674. It was used in
 `get_media_embedded_in_content()` before [31574]. Not used anywhere since
 then.

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


More information about the wp-trac mailing list