[wp-trac] [WordPress Trac] #34561: Abstract some embed template code into functions
WordPress Trac
noreply at wordpress.org
Tue Nov 10 15:07:46 UTC 2015
#34561: Abstract some embed template code into functions
-------------------------+--------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.4
Component: Embeds | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+--------------------
Comment (by swissspidy):
> I think for the template functions `the_embed_*` and for the hooks
`embed_*` seems to be followed.
It's worth noting that `the_excerpt_embed()` is more similar to
`the_excerpt_rss()`, that's why I chose it. Easier for devs to find while
browsing the source.
If we're gonna rename it (which is not 100% necessary IMHO), it should be
done in a separate patch/commit.
Note: I'd love to use `the_excerpt()` itself in the embed template, but
too much plugins hook into that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34561#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list