Un motore di ricerca WordPress per sviluppatori e autori di temi



process_text_diff_html ›

Da4.1.0
Deprecaton/a
apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' )
Parametri: (3)
  • (String) $processed_line The processed diffed line.
    Richiesto:
  • (String) $line The unprocessed diffed line.
    Richiesto:
  • (string) null The line context. Values are 'added', 'deleted' or 'unchanged'.
    Richiesto:
Definito a:
Codex:

Contextually filters a diffed line.

Filters TextDiff processing of diffed line. By default, diffs are processed with htmlspecialchars. Use this filter to remove or change the processing. Passes a context indicating if the line is added, deleted or unchanged.





Sorgenti

$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' );