mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 14:14:36 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@34291 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -527,13 +527,6 @@ function wp_get_mu_plugins() {
|
||||
function wp_get_active_and_valid_plugins() {
|
||||
$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' ) )
|
||||
return $plugins;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user