[wp-trac] [WordPress Trac] #41905: Only loop over enclosure meta keys in rss_enclosure() and atom_enclosure()
WordPress Trac
noreply at wordpress.org
Mon Sep 18 15:59:16 UTC 2017
#41905: Only loop over enclosure meta keys in rss_enclosure() and atom_enclosure()
----------------------------------------+------------------------------
Reporter: birgire | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Feeds | Version: 2.2
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------------------
Comment (by birgire):
There's already a core {{{get_enclosed()}}} function, that I think we
might use it here, but it also uses {{{get_post_custom()}}}:
https://developer.wordpress.org/reference/functions/get_enclosed/
So I think we could make the above changes for {{{get_enclosed()}}}.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41905#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list