process_text_diff_html

process_text_diff_html

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

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('process_text_diff_html') is found 3 times:

  • /wp-includes/class-wp-text-diff-renderer-table.php line 213
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
         * @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 239
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    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 264
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    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";
    }