[wp-trac] [WordPress Trac] #24908: Proposed new filters/hooks for revisions

WordPress Trac noreply at wordpress.org
Sat Nov 8 01:35:51 UTC 2014


#24908: Proposed new filters/hooks for revisions
------------------------------------+------------------
 Reporter:  adamsilverstein         |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  4.1
Component:  Revisions               |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------

Comment (by adamsilverstein):

 Sounds good to me. I used 'context' to match the internal naming, but
 'unchanged'  makes way more sense...

 Replying to [comment:15 ericlewis]:
 > I think we should change 'context' to 'unchanged' here:
 >
 > {{{
 > #!php
 > $line = apply_filters( 'process_text_diff_html', htmlspecialchars( $line
 ), $line, 'context' );
 > }}}
 >
 > otherwise this looks rad.

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


More information about the wp-trac mailing list