Remove support for my-hacks.php

For the last 10 years, my-hacks has been deprecated and has been throwing a deprecation notice. For the last six years, you haven't been able to enable my-hacks.php in the admin UI. That should be enough time to give developers notice. Plugins and themes seem like they might have staying power.

Fixes #33741
Props bobbingwide


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


git-svn-id: http://core.svn.wordpress.org/trunk@34255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Aaron Jorbin 2015-09-18 17:06:25 +00:00
parent f3a62b7714
commit 10d03c1ab3
4 changed files with 1 additions and 10 deletions

View File

@ -36,7 +36,6 @@ $wp_file_descriptions = array(
'video.php' => __('Video Attachment Template'), 'video.php' => __('Video Attachment Template'),
'audio.php' => __('Audio Attachment Template'), 'audio.php' => __('Audio Attachment Template'),
'application.php' => __('Application Attachment Template'), 'application.php' => __('Application Attachment Template'),
'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ),
'.htaccess' => __( '.htaccess (for rewrite rules )' ), '.htaccess' => __( '.htaccess (for rewrite rules )' ),
// Deprecated files // Deprecated files
'wp-layout.css' => __( 'Stylesheet' ), 'wp-layout.css' => __( 'Stylesheet' ),

View File

@ -412,7 +412,6 @@ function populate_options() {
'moderation_notify' => 1, 'moderation_notify' => 1,
'permalink_structure' => '', 'permalink_structure' => '',
'gzipcompression' => 0, 'gzipcompression' => 0,
'hack_file' => 0,
'blog_charset' => 'UTF-8', 'blog_charset' => 'UTF-8',
'moderation_keys' => '', 'moderation_keys' => '',
'active_plugins' => array(), 'active_plugins' => array(),

View File

@ -527,13 +527,6 @@ function wp_get_mu_plugins() {
function wp_get_active_and_valid_plugins() { function wp_get_active_and_valid_plugins() {
$plugins = array(); $plugins = array();
$active_plugins = (array) get_option( 'active_plugins', array() ); $active_plugins = (array) get_option( 'active_plugins', array() );
// Check for hacks file if the option is enabled
if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) {
_deprecated_file( 'my-hacks.php', '1.5' );
array_unshift( $plugins, ABSPATH . 'my-hacks.php' );
}
if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) ) if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) )
return $plugins; return $plugins;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34290'; $wp_version = '4.4-alpha-34291';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.