WordPress.org

Make WordPress Core

Changeset 34291


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

Location:
trunk/src
Files:
3 edited

Legend:

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

    r34290 r34291  
    3737    'audio.php' => __('Audio Attachment Template'),
    3838    'application.php' => __('Application Attachment Template'),
    39     'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ),
    4039    '.htaccess' => __( '.htaccess (for rewrite rules )' ),
    4140    // Deprecated files
  • trunk/src/wp-admin/includes/schema.php

    r34030 r34291  
    413413    'permalink_structure' => '',
    414414    'gzipcompression' => 0,
    415     'hack_file' => 0,
    416415    'blog_charset' => 'UTF-8',
    417416    'moderation_keys' => '',
  • 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.