wppaste
WordPress

WP_Text_Diff_Renderer_Table

Since
2.6.0
Source
wp-includes/class-wp-text-diff-renderer-table.php:21
Table renderer to display the diff lines.

Compatibility

WordPress
since 2.6.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Hooks and filters fired · 3

Every hook that fires from inside WP_Text_Diff_Renderer_Table, in the order it appears in the class, grouped by the method that fires it.

Properties · 11

$_leading_context_linesintpublic
$_trailing_context_linesintpublic
$_titlestring|nullpublic
Title of the item being compared.
$_title_leftstring|nullpublic
Title for the left column.
$_title_rightstring|nullpublic
Title for the right column.
$_diff_thresholdfloatprotected
Threshold for when a diff should be saved or omitted.
$inline_diff_rendererstringprotected
Inline display helper object name.
$_show_split_viewstringprotected
Should we show the split view or not
$compat_fieldsprotected
$count_cachearrayprotected
Caches the output of count_chars() in compute_string_distance()
$difference_cachearrayprotected
Caches the difference calculation in compute_string_distance()

Methods · 18

Source code

#[AllowDynamicProperties]class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer { 	/**	 * @see Text_Diff_Renderer::_leading_context_lines	 * @var int	 * @since 2.6.0	 */	public $_leading_context_lines = 10000; 	/**	 * @see Text_Diff_Renderer::_trailing_context_lines	 * @var int	 * @since 2.6.0	 */	public $_trailing_context_lines = 10000; 	/**	 * Title of the item being compared.	 *	 * @since 6.4.0 Declared a previously dynamic property.	 * @var string|null	 */	public $_title; 	/**	 * Title for the left column.	 *	 * @since 6.4.0 Declared a previously dynamic property.	 * @var string|null	 */	public $_title_left; 	/**	 * Title for the right column.	 *	 * @since 6.4.0 Declared a previously dynamic property.	 * @var string|null	 */	public $_title_right; 	/**	 * Threshold for when a diff should be saved or omitted.	 *	 * @var float	 * @since 2.6.0	 */	protected $_diff_threshold = 0.6; 	/**	 * Inline display helper object name.	 *	 * @var string	 * @since 2.6.0	 */	protected $inline_diff_renderer = 'WP_Text_Diff_Renderer_inline'; 	/**	 * Should we show the split view or not	 *	 * @var string	 * @since 3.6.0	 */	protected $_show_split_view = true; 	protected $compat_fields = array( '_show_split_view', 'inline_diff_renderer', '_diff_threshold' ); 	/**	 * Caches the output of count_chars() in compute_string_distance()	 *	 * @var array	 * @since 5.0.0	 */	protected $count_cache = array(); 	/**	 * Caches the difference calculation in compute_string_distance()	 *	 * @var array	 * @since 5.0.0

Changelog

Introduced in 2.6.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-includes/class-wp-text-diff-renderer-table.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.