diff options
| author | Max | 2018-11-04 22:31:39 +0100 |
|---|---|---|
| committer | Max | 2018-11-04 22:31:39 +0100 |
| commit | a3e1f8c9c14edf58185f290a492d86d6d688813b (patch) | |
| tree | 3312dbaa9d17d06a77e6bf5c55af6f8233f32d0e | |
| parent | 1f24a3b3309cd6c99806eea82e9d70ff9f497a5d (diff) | |
| download | fuselkoenig_de-a3e1f8c9c14edf58185f290a492d86d6d688813b.tar.gz | |
Bug fix + blocks emoji support in functions.php.
| -rw-r--r-- | functions.php | 13 |
1 files changed, 11 insertions, 2 deletions
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' ); + */ |
