summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php13
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' );
+ */