OSDN Git Service

WordPressテンプレート機能更新。
authornaoki hirata <naoki@magic3.org>
Tue, 13 Jun 2017 05:37:12 +0000 (14:37 +0900)
committernaoki hirata <naoki@magic3.org>
Tue, 13 Jun 2017 05:37:12 +0000 (14:37 +0900)
include/wp/wp-includes/default-filters.php
include/wp/wp-includes/load.php

index 4298c5b..79811f1 100644 (file)
@@ -295,11 +295,11 @@ add_action( 'do_pings',                   'do_all_pings',
 add_action( 'do_robots',                  'do_robots'                                      );
 add_action( 'set_comment_cookies',        'wp_set_comment_cookies',                  10, 2 );
 add_action( 'sanitize_comment_cookies',   'sanitize_comment_cookies'                       );
-add_action( 'admin_print_scripts',        'print_emoji_detection_script'                   );
-add_action( 'admin_print_scripts',        'print_head_scripts',                      20    );
-add_action( 'admin_print_footer_scripts', '_wp_footer_scripts'                             );
-add_action( 'admin_print_styles',         'print_emoji_styles'                             );
-add_action( 'admin_print_styles',         'print_admin_styles',                      20    );
+//add_action( 'admin_print_scripts',        'print_emoji_detection_script'                   );
+//add_action( 'admin_print_scripts',        'print_head_scripts',                      20    );
+//add_action( 'admin_print_footer_scripts', '_wp_footer_scripts'                             );
+//add_action( 'admin_print_styles',         'print_emoji_styles'                             );
+//add_action( 'admin_print_styles',         'print_admin_styles',                      20    );
 add_action( 'init',                       'smilies_init',                             5    );
 add_action( 'plugins_loaded',             'wp_maybe_load_widgets',                    0    );
 add_action( 'plugins_loaded',             'wp_maybe_load_embeds',                     0    );
@@ -312,7 +312,7 @@ add_action( 'transition_post_status',     '_update_term_count_on_transition_post
 add_action( 'comment_form',               'wp_comment_form_unfiltered_html_nonce'          );
 add_action( 'wp_scheduled_delete',        'wp_scheduled_delete'                            );
 add_action( 'wp_scheduled_auto_draft_delete', 'wp_delete_auto_drafts'                      );
-add_action( 'admin_init',                 'send_frame_options_header',               10, 0 );
+//add_action( 'admin_init',                 'send_frame_options_header',               10, 0 );
 add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment'                           );
 add_action( 'upgrader_scheduled_cleanup', 'wp_delete_attachment'                           );
 add_action( 'welcome_panel',              'wp_welcome_panel'                               );
@@ -341,7 +341,7 @@ add_action( 'wp_head', 'wp_post_preview_js', 1 );
 add_filter( 'pre_option_gmt_offset','wp_timezone_override_offset' );
 
 // Admin Color Schemes
-add_action( 'admin_init', 'register_admin_color_schemes', 1);
+//add_action( 'admin_init', 'register_admin_color_schemes', 1);
 add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
 
 // If the upgrade hasn't run yet, assume link manager is used.
@@ -366,7 +366,7 @@ add_filter( 'determine_current_user', 'wp_validate_auth_cookie'          );
 add_filter( 'determine_current_user', 'wp_validate_logged_in_cookie', 20 );
 
 // Split term updates.
-add_action( 'admin_init',        '_wp_check_for_scheduled_split_terms' );
+//add_action( 'admin_init',        '_wp_check_for_scheduled_split_terms' );
 add_action( 'split_shared_term', '_wp_check_split_default_terms',  10, 4 );
 add_action( 'split_shared_term', '_wp_check_split_terms_in_menus', 10, 4 );
 add_action( 'split_shared_term', '_wp_check_split_nav_menu_terms', 10, 4 );
index 68ed0bd..d1ca81e 100644 (file)
@@ -26,6 +26,7 @@ function wp_get_server_protocol() {
  * @since 2.1.0
  * @access private
  */
+/*
 function wp_unregister_GLOBALS() {
        if ( !ini_get( 'register_globals' ) )
                return;
@@ -42,7 +43,7 @@ function wp_unregister_GLOBALS() {
                        unset( $GLOBALS[$k] );
                }
 }
-
+*/
 /**
  * Fix `$_SERVER` variables for various setups.
  *
@@ -52,6 +53,7 @@ function wp_unregister_GLOBALS() {
  * @global string $PHP_SELF The filename of the currently executing script,
  *                          relative to the document root.
  */
+/*
 function wp_fix_server_vars() {
        global $PHP_SELF;
 
@@ -105,7 +107,7 @@ function wp_fix_server_vars() {
        if ( empty( $PHP_SELF ) )
                $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace( '/(\?.*)?$/', '', $_SERVER["REQUEST_URI"] );
 }
-
+*/
 /**
  * Check for the required PHP version, and the MySQL extension or
  * a database drop-in.
@@ -118,7 +120,7 @@ function wp_fix_server_vars() {
  * @global string $required_php_version The required PHP version string.
  * @global string $wp_version           The WordPress version string.
  */
-function wp_check_php_mysql_versions() {
+/*function wp_check_php_mysql_versions() {
        global $required_php_version, $wp_version;
        $php_version = phpversion();
 
@@ -128,7 +130,7 @@ function wp_check_php_mysql_versions() {
                $protocol = wp_get_server_protocol();
                header( sprintf( '%s 500 Internal Server Error', $protocol ), true, 500 );
                header( 'Content-Type: text/html; charset=utf-8' );
-               /* translators: 1: Current PHP version number, 2: WordPress version number, 3: Minimum required PHP version number */
+               // translators: 1: Current PHP version number, 2: WordPress version number, 3: Minimum required PHP version number
                die( sprintf( __( 'Your server is running PHP version %1$s but WordPress %2$s requires at least %3$s.' ), $php_version, $wp_version, $required_php_version ) );
        }
 
@@ -141,7 +143,7 @@ function wp_check_php_mysql_versions() {
                die( __( 'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.' ) );
        }
 }
-
+*/
 /**
  * Don't load all of WordPress when handling a favicon.ico request.
  *
@@ -593,7 +595,10 @@ function wp_get_mu_plugins() {
  */
 function wp_get_active_and_valid_plugins() {
        $plugins = array();
-       $active_plugins = (array) get_option( 'active_plugins', array() );
+//     $active_plugins = (array) get_option( 'active_plugins', array() );
+       // Magic3暫定
+       $active_plugins = array();
+       $active_plugins[] = 'wp-multibyte-patch/wp-multibyte-patch.php';
 
        // Check for hacks file if the option is enabled
        if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) {