mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@35688 git-svn-id: http://core.svn.wordpress.org/trunk@35652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
16502d03f2
commit
e8d8e79371
@ -39,6 +39,7 @@ $wp_file_descriptions = array(
|
|||||||
'video.php' => __('Video Attachment Template'),
|
'video.php' => __('Video Attachment Template'),
|
||||||
'audio.php' => __('Audio Attachment Template'),
|
'audio.php' => __('Audio Attachment Template'),
|
||||||
'application.php' => __('Application Attachment Template'),
|
'application.php' => __('Application Attachment Template'),
|
||||||
|
'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ),
|
||||||
'.htaccess' => __( '.htaccess (for rewrite rules )' ),
|
'.htaccess' => __( '.htaccess (for rewrite rules )' ),
|
||||||
// Deprecated files
|
// Deprecated files
|
||||||
'wp-layout.css' => __( 'Stylesheet' ),
|
'wp-layout.css' => __( 'Stylesheet' ),
|
||||||
|
@ -420,6 +420,7 @@ function populate_options() {
|
|||||||
'comment_moderation' => 0,
|
'comment_moderation' => 0,
|
||||||
'moderation_notify' => 1,
|
'moderation_notify' => 1,
|
||||||
'permalink_structure' => '',
|
'permalink_structure' => '',
|
||||||
|
'hack_file' => 0,
|
||||||
'blog_charset' => 'UTF-8',
|
'blog_charset' => 'UTF-8',
|
||||||
'moderation_keys' => '',
|
'moderation_keys' => '',
|
||||||
'active_plugins' => array(),
|
'active_plugins' => array(),
|
||||||
|
@ -552,6 +552,13 @@ function wp_get_mu_plugins() {
|
|||||||
function wp_get_active_and_valid_plugins() {
|
function wp_get_active_and_valid_plugins() {
|
||||||
$plugins = array();
|
$plugins = array();
|
||||||
$active_plugins = (array) get_option( 'active_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 ) || wp_installing() )
|
if ( empty( $active_plugins ) || wp_installing() )
|
||||||
return $plugins;
|
return $plugins;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta4-35687';
|
$wp_version = '4.4-beta4-35688';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user