1
0
mirror of https://github.com/WordPress/WordPress.git synced 2025-03-14 07:39:15 +01:00
WordPress/wp-admin/custom-header.php
audrasjb 0619c6d95a General: Stop direct loading of files in /wp-admin that should only be included.
This changeset restricts direct access call in `/wp-admin` and its sub directories.

Follow-up to [11768].

Props deepakrohilla.
See .



Built from https://develop.svn.wordpress.org/trunk@59678


git-svn-id: http://core.svn.wordpress.org/trunk@59021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-22 14:06:22 +00:00

21 lines
499 B
PHP

<?php
/**
* Custom header image script.
*
* This file is deprecated, use 'wp-admin/includes/class-custom-image-header.php' instead.
*
* @deprecated 5.3.0
* @package WordPress
* @subpackage Administration
*/
// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-image-header.php' );
/** Custom_Image_Header class */
require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';