mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
This changeset restricts direct access call in `/wp-includes` and its sub directories. Follow-up to [11768], [59678]. Props deepakrohilla. Fixes #61314. Built from https://develop.svn.wordpress.org/trunk@59688 git-svn-id: http://core.svn.wordpress.org/trunk@59030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
29 lines
799 B
PHP
29 lines
799 B
PHP
<?php
|
|
/**
|
|
* WordPress Diff bastard child of old MediaWiki Diff Formatter.
|
|
*
|
|
* Basically all that remains is the table structure and some method names.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Diff
|
|
*/
|
|
|
|
// Don't load directly.
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
die( '-1' );
|
|
}
|
|
|
|
if ( ! class_exists( 'Text_Diff', false ) ) {
|
|
/** Text_Diff class */
|
|
require ABSPATH . WPINC . '/Text/Diff.php';
|
|
/** Text_Diff_Renderer class */
|
|
require ABSPATH . WPINC . '/Text/Diff/Renderer.php';
|
|
/** Text_Diff_Renderer_inline class */
|
|
require ABSPATH . WPINC . '/Text/Diff/Renderer/inline.php';
|
|
/** Text_Exception class */
|
|
require ABSPATH . WPINC . '/Text/Exception.php';
|
|
}
|
|
|
|
require ABSPATH . WPINC . '/class-wp-text-diff-renderer-table.php';
|
|
require ABSPATH . WPINC . '/class-wp-text-diff-renderer-inline.php';
|