WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/18/2015 05:05:28 PM (6 years ago)
Author:
jorbin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r33935 r34291  
    528528    $plugins = array();
    529529    $active_plugins = (array) get_option( 'active_plugins', array() );
    530 
    531     // Check for hacks file if the option is enabled
    532     if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) {
    533         _deprecated_file( 'my-hacks.php', '1.5' );
    534         array_unshift( $plugins, ABSPATH . 'my-hacks.php' );
    535     }
    536 
    537530    if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) )
    538531        return $plugins;
Note: See TracChangeset for help on using the changeset viewer.