mirror of
https://github.com/mashirozx/sakura.git
synced 2024-12-12 09:54:35 +08:00
enable oembed
This commit is contained in:
parent
5679530453
commit
0f12d96e09
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user