[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/ -> wp-diff.php (source)

   1  <?php
   2  /**
   3   * WordPress Diff bastard child of old MediaWiki Diff Formatter.
   4   *
   5   * Basically all that remains is the table structure and some method names.
   6   *
   7   * @package WordPress
   8   * @subpackage Diff
   9   */
  10  
  11  // Don't load directly.
  12  if ( ! defined( 'ABSPATH' ) ) {
  13      die( '-1' );
  14  }
  15  
  16  if ( ! class_exists( 'Text_Diff', false ) ) {
  17      /** Text_Diff class */
  18      require  ABSPATH . WPINC . '/Text/Diff.php';
  19      /** Text_Diff_Renderer class */
  20      require  ABSPATH . WPINC . '/Text/Diff/Renderer.php';
  21      /** Text_Diff_Renderer_inline class */
  22      require  ABSPATH . WPINC . '/Text/Diff/Renderer/inline.php';
  23      /** Text_Exception class */
  24      require  ABSPATH . WPINC . '/Text/Exception.php';
  25  }
  26  
  27  require  ABSPATH . WPINC . '/class-wp-text-diff-renderer-table.php';
  28  require  ABSPATH . WPINC . '/class-wp-text-diff-renderer-inline.php';


Generated : Thu Jan 30 08:20:01 2025 Cross-referenced by PHPXref