Opened 9 years ago
Last modified 5 years ago
#34808 new defect (bug)
Deprecate get_media_embedded_in_content() and get_tag_regex()
Reported by: | azaozz | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
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 embedding flash) and doesn't match short ended tags without a slash at the end.
get_tag_regex()
is also buggy, see #26674. It was used in get_media_embedded_in_content()
before [31574]. Not used anywhere since then.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Added NOTICE or WARNING when any of the functions used. But they are still available until they are completely removed.