| 1 | Index: wp-includes/load.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/load.php (revision 17519) |
|---|
| 4 | +++ wp-includes/load.php (working copy) |
|---|
| 5 | @@ -474,12 +474,6 @@ |
|---|
| 6 | $plugins = array(); |
|---|
| 7 | $active_plugins = (array) get_option( 'active_plugins', array() ); |
|---|
| 8 | |
|---|
| 9 | - // Check for hacks file if the option is enabled |
|---|
| 10 | - if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) { |
|---|
| 11 | - _deprecated_file( 'my-hacks.php', '1.5' ); |
|---|
| 12 | - array_unshift( $plugins, ABSPATH . 'my-hacks.php' ); |
|---|
| 13 | - } |
|---|
| 14 | - |
|---|
| 15 | if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) ) |
|---|
| 16 | return $plugins; |
|---|
| 17 | |
|---|
| 18 | Index: wp-admin/includes/file.php |
|---|
| 19 | =================================================================== |
|---|
| 20 | --- wp-admin/includes/file.php (revision 17519) |
|---|
| 21 | +++ wp-admin/includes/file.php (working copy) |
|---|
| 22 | @@ -34,7 +34,6 @@ |
|---|
| 23 | 'video.php' => __('Video Attachment Template'), |
|---|
| 24 | 'audio.php' => __('Audio Attachment Template'), |
|---|
| 25 | 'application.php' => __('Application Attachment Template'), |
|---|
| 26 | - 'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ), |
|---|
| 27 | '.htaccess' => __( '.htaccess (for rewrite rules )' ), |
|---|
| 28 | // Deprecated files |
|---|
| 29 | 'wp-layout.css' => __( 'Stylesheet' ), |
|---|
| 30 | Index: wp-admin/includes/schema.php |
|---|
| 31 | =================================================================== |
|---|
| 32 | --- wp-admin/includes/schema.php (revision 17519) |
|---|
| 33 | +++ wp-admin/includes/schema.php (working copy) |
|---|
| 34 | @@ -231,15 +231,12 @@ |
|---|
| 35 | 'comment_moderation' => 0, |
|---|
| 36 | 'moderation_notify' => 1, |
|---|
| 37 | 'permalink_structure' => '', |
|---|
| 38 | - 'gzipcompression' => 0, |
|---|
| 39 | - 'hack_file' => 0, |
|---|
| 40 | 'blog_charset' => 'UTF-8', |
|---|
| 41 | 'moderation_keys' => '', |
|---|
| 42 | 'active_plugins' => array(), |
|---|
| 43 | 'home' => $guessurl, |
|---|
| 44 | 'category_base' => '', |
|---|
| 45 | 'ping_sites' => 'http://rpc.pingomatic.com/', |
|---|
| 46 | - 'advanced_edit' => 0, |
|---|
| 47 | 'comment_max_links' => 2, |
|---|
| 48 | 'gmt_offset' => date('Z') / 3600, |
|---|
| 49 | |
|---|
| 50 | @@ -360,7 +357,7 @@ |
|---|
| 51 | if ( !__get_option('home') ) update_option('home', $guessurl); |
|---|
| 52 | |
|---|
| 53 | // Delete unused options |
|---|
| 54 | - $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url', 'new_users_can_blog', '_wpnonce', '_wp_http_referer', 'Update', 'action', 'rich_editing', 'autosave_interval', 'deactivated_plugins', 'can_compress_scripts', 'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', 'random_seed', 'rss_excerpt_length', 'secret', 'use_linksupdate', 'default_comment_status_page', 'wporg_popular_tags', 'what_to_show'); |
|---|
| 55 | + $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url', 'new_users_can_blog', '_wpnonce', '_wp_http_referer', 'Update', 'action', 'rich_editing', 'autosave_interval', 'deactivated_plugins', 'can_compress_scripts', 'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', 'random_seed', 'rss_excerpt_length', 'secret', 'use_linksupdate', 'default_comment_status_page', 'wporg_popular_tags', 'what_to_show', 'gzipcompression', 'advanced_edit'); |
|---|
| 56 | foreach ( $unusedoptions as $option ) |
|---|
| 57 | delete_option($option); |
|---|
| 58 | |
|---|