enable oembed

This commit is contained in:
Mashiro 2019-06-14 22:50:22 +08:00 committed by GitHub
parent 5679530453
commit 0f12d96e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,12 +94,12 @@ function akina_setup() {
remove_action( 'wp_head', 'wp_generator' ); //隐藏wordpress版本 remove_action( 'wp_head', 'wp_generator' ); //隐藏wordpress版本
remove_filter('the_content', 'wptexturize'); //取消标点符号转义 remove_filter('the_content', 'wptexturize'); //取消标点符号转义
remove_action('rest_api_init', 'wp_oembed_register_route'); //remove_action('rest_api_init', 'wp_oembed_register_route');
remove_filter('rest_pre_serve_request', '_oembed_rest_pre_serve_request', 10, 4); //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_dataparse', 'wp_filter_oembed_result', 10);
remove_filter('oembed_response_data', 'get_oembed_response_data_rich', 10, 4); //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_discovery_links');
remove_action('wp_head', 'wp_oembed_add_host_js'); //remove_action('wp_head', 'wp_oembed_add_host_js');
remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 ); remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 );
function coolwp_remove_open_sans_from_wp_core() { function coolwp_remove_open_sans_from_wp_core() {