process_text_diff_html

process_text_diff_html

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('process_text_diff_html') is found 3 times:

  • /wp-includes/class-wp-text-diff-renderer-table.php line 208
    				 * @param string $processed_line The processed diffed line.
    				 * @param string $line           The unprocessed diffed line.
    				 * @param string $context        The line context. Values are 'added', 'deleted' or 'unchanged'.
    				 */
    				$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' );
    			}
    
    			if ( $this->_show_split_view ) {
    				$r .= '<tr>' . $this->emptyLine() . $this->addedLine( $line ) . "</tr>\n";
    			} else {
    				$r .= '<tr>' . $this->addedLine( $line ) . "</tr>\n";
    
  • /wp-includes/class-wp-text-diff-renderer-table.php line 234
    			if ( $encode ) {
    				$processed_line = htmlspecialchars( $line );
    
    				/** This filter is documented in wp-includes/wp-diff.php */
    				$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'deleted' );
    			}
    			if ( $this->_show_split_view ) {
    				$r .= '<tr>' . $this->deletedLine( $line ) . $this->emptyLine() . "</tr>\n";
    			} else {
    				$r .= '<tr>' . $this->deletedLine( $line ) . "</tr>\n";
    			}
    
  • /wp-includes/class-wp-text-diff-renderer-table.php line 259
    			if ( $encode ) {
    				$processed_line = htmlspecialchars( $line );
    
    				/** This filter is documented in wp-includes/wp-diff.php */
    				$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'unchanged' );
    			}
    			if ( $this->_show_split_view ) {
    				$r .= '<tr>' . $this->contextLine( $line ) . $this->contextLine( $line ) . "</tr>\n";
    			} else {
    				$r .= '<tr>' . $this->contextLine( $line ) . "</tr>\n";
    			}