From a3e1f8c9c14edf58185f290a492d86d6d688813b Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 4 Nov 2018 22:31:39 +0100 Subject: Bug fix + blocks emoji support in functions.php. --- functions.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index eb5f9f3..5e1fef8 100644 --- a/functions.php +++ b/functions.php @@ -156,7 +156,8 @@ function print_glossar_link( $atts ) { add_shortcode( "glossar", "print_glossar_link" ); /** - * Unsure if needed. + * Redirects from the gallery to the actual post. + */ function wpsites_attachment_redirect(){ global $post; if ( is_attachment() && isset($post->post_parent) && is_numeric($post->post_parent) && ($post->post_parent != 0) ) { @@ -166,7 +167,7 @@ function wpsites_attachment_redirect(){ wp_reset_postdata(); } } -*/ +add_action( 'template_redirect', 'wpsites_attachment_redirect' ); /** * Remove tags from tag cloud with zero entries. @@ -241,3 +242,11 @@ if ( ! function_exists("get_my_clean_title")) { } } + +/** + * Removes emoji support. + */ +/* +remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); +remove_action( 'wp_print_styles', 'print_emoji_styles' ); + */ -- cgit v1.2.3