Opened 11 years ago
Last modified 7 years ago
#34808 new defect (bug)
Deprecate get_media_embedded_in_content() and get_tag_regex()
| Reported by: | azaozz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Added NOTICE or WARNING when any of the functions used. But they are still available until they are completely removed.