[wp-trac] [WordPress Trac] #31493: Press This: Remove classes from suggested blockquote and source

WordPress Trac noreply at wordpress.org
Mon Mar 2 15:15:22 UTC 2015


#31493: Press This: Remove classes from suggested blockquote and source
-----------------------------+------------------------------
 Reporter:  Michael Arestad  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Press This       |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------

Comment (by kraftbj):

 31493.3 acknowledges @danielbachhuber point of a "legacy" mode:

 {{{
 * Renames `press_this_suggested_html` filter to
 `press_this_suggested_source_html`.
 * Adds `press_this_suggested_default_html` filter to modify the
 wrapper/html associated with the blockquote.
 * Continues the original patch of removing the default classes on both
 items.
 }}}

 "Legacy" mode could be done via a couple of filters, e.g.
 {{{
 add_filter( 'press_this_suggested_default_html', 'bk_pt_legacy_default' );
 function bk_pt_legacy_default() {
 $default_html = '';
 return $default_html;
 }

 add_filter( 'press_this_suggested_source_html', 'bk_pt_legacy_source' );
 function bk_pt_legacy_source() {
 $source_html = '<a href="%1$s">%2$s</a>';
 return $source_html;
 }
 }}}

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


More information about the wp-trac mailing list