[wp-trac] [WordPress Trac] #34455: Additional Filters for Press This

WordPress Trac noreply at wordpress.org
Wed Feb 24 03:55:23 UTC 2016


#34455: Additional Filters for Press This
------------------------------+----------------------
 Reporter:  cadeyrn           |       Owner:  kraftbj
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  4.5
Component:  Press This        |     Version:  4.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+----------------------
Changes (by jorbin):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36672"]:
 {{{
 #!CommitTicketReference repository="" revision="36672"
 Add Additional filters to Press This

 3 new filters that aim to improve the extensibility of Press This:
 1) `press_this_save_post_content` - Applied right after the
 side_load_images in order to allow potential side loads of other types of
 media.
 Example use case: side load non-image media, such as audio or video.

 2) `press_this_useful_html_elements`
 Allows filtering of currently hard coded array of HTML elements allowed in
 fetch_source_html step for special cases where additional HTML elements
 need to be kept.
 Example use case: HTML5 elements, such as amp-img, that someone wants to
 pull in.

 3) `press_this_suggested_content`
 A filter for the content right before it's passed to the editor and
 presented to the user.
 Example use case is when someone stored posts in a different, non-HTML
 format, such as Markdown, this is essential.

 Fixes #34455.
 Props cadeyrn, kraftbj
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34455#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list