From 0f12d96e09c8672b6dbf2c0c7c32f7a00ccd9044 Mon Sep 17 00:00:00 2001 From: Mashiro Date: Fri, 14 Jun 2019 22:50:22 +0800 Subject: [PATCH] enable oembed --- functions.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions.php b/functions.php index d3aa5b3..97ed078 100644 --- a/functions.php +++ b/functions.php @@ -94,12 +94,12 @@ function akina_setup() { remove_action( 'wp_head', 'wp_generator' ); //隐藏wordpress版本 remove_filter('the_content', 'wptexturize'); //取消标点符号转义 - remove_action('rest_api_init', 'wp_oembed_register_route'); - remove_filter('rest_pre_serve_request', '_oembed_rest_pre_serve_request', 10, 4); - remove_filter('oembed_dataparse', 'wp_filter_oembed_result', 10); - remove_filter('oembed_response_data', 'get_oembed_response_data_rich', 10, 4); - remove_action('wp_head', 'wp_oembed_add_discovery_links'); - remove_action('wp_head', 'wp_oembed_add_host_js'); + //remove_action('rest_api_init', 'wp_oembed_register_route'); + //remove_filter('rest_pre_serve_request', '_oembed_rest_pre_serve_request', 10, 4); + //remove_filter('oembed_dataparse', 'wp_filter_oembed_result', 10); + //remove_filter('oembed_response_data', 'get_oembed_response_data_rich', 10, 4); + //remove_action('wp_head', 'wp_oembed_add_discovery_links'); + //remove_action('wp_head', 'wp_oembed_add_host_js'); remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 ); function coolwp_remove_open_sans_from_wp_core() {