[wp-trac] [WordPress Trac] #37938: Split Source Parsing Functions from Press This So Can Be Used Globally
WordPress Trac
noreply at wordpress.org
Sat Sep 3 17:08:27 UTC 2016
#37938: Split Source Parsing Functions from Press This So Can Be Used Globally
-------------------------+-----------------------------
Reporter: dshanske | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: Press This | Version: 4.2
Severity: minor | Keywords:
Focuses: |
-------------------------+-----------------------------
WordPress already has an HTML parsing function in the form of
WP_Press_This::source_data_fetch_fallback and its private called
functions.
Suggesting this be split off so it can be used elsewhere. Specifically, my
use case is over on the Ping and Trackbacks component. One of the
proposals I keep advocating for is improving the presentation.
As we already have this code in WordPress that allows for parsing of HTML
for images, embeds, meta tags, etc, it should be used over writing new
code to do the same.
But if it were to be called right now, it would reretrieve source HTML
already retrieved by the Pingback code and passed into the comment array.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37938>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list