Make WordPress Core


Ignore:
Timestamp:
11/18/2015 08:48:24 PM (9 years ago)
Author:
jorbin
Message:

Revert [34291] bringing back my-hacks

Keeping myhacks support is a small price to pay for not breaking people's sites. Even if it is very very very few sites, breaking sites isn't something that should be encouraged. Even with 10 years of deprecation notices.

https://core.trac.wordpress.org/ticket/33741#comment:18 outlines all the ways that the hack_file and my-hacks options can be setup and thus all the ways that the removal of those options could break sites.

Fixes #33741.

File:
1 edited

Legend:

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

    r35641 r35688  
    553553    $plugins = array();
    554554    $active_plugins = (array) get_option( 'active_plugins', array() );
     555
     556    // Check for hacks file if the option is enabled
     557    if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) {
     558        _deprecated_file( 'my-hacks.php', '1.5' );
     559        array_unshift( $plugins, ABSPATH . 'my-hacks.php' );
     560    }
     561
    555562    if ( empty( $active_plugins ) || wp_installing() )
    556563        return $plugins;
Note: See TracChangeset for help on using the changeset viewer.