Make WordPress Core

Ticket #33741: 33741.patch

File 33741.patch, 1.6 KB (added by bobbingwide, 8 years ago)

Remove references to my-hacks.php and hack_file

  • src/wp-admin/includes/file.php

     
    3636        'video.php' => __('Video Attachment Template'),
    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
    4241        'wp-layout.css' => __( 'Stylesheet' ),
  • src/wp-admin/includes/schema.php

     
    412412        'moderation_notify' => 1,
    413413        'permalink_structure' => '',
    414414        'gzipcompression' => 0,
    415         'hack_file' => 0,
    416415        'blog_charset' => 'UTF-8',
    417416        'moderation_keys' => '',
    418417        'active_plugins' => array(),
  • src/wp-includes/load.php

     
    528528function wp_get_active_and_valid_plugins() {
    529529        $plugins = array();
    530530        $active_plugins = (array) get_option( 'active_plugins', array() );
    531 
    532         // Check for hacks file if the option is enabled
    533         if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) {
    534                 _deprecated_file( 'my-hacks.php', '1.5' );
    535                 array_unshift( $plugins, ABSPATH . 'my-hacks.php' );
    536         }
    537 
    538531        if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) )
    539532                return $plugins;
    540533