From 5885dbd5fd5c81bca41ebf6561777470ddb21d8d Mon Sep 17 00:00:00 2001
From: Tetrakern <26898880+Tetrakern@users.noreply.github.com>
Date: Mon, 2 Dec 2024 15:55:36 +0100
Subject: [PATCH] Remove test filter
---
includes/functions/_helpers-templates.php | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/includes/functions/_helpers-templates.php b/includes/functions/_helpers-templates.php
index d626962b..208fb12d 100644
--- a/includes/functions/_helpers-templates.php
+++ b/includes/functions/_helpers-templates.php
@@ -294,24 +294,6 @@ if ( ! function_exists( 'fictioneer_get_safe_title' ) ) {
}
}
-function custom_blur_title_with_spoiler( $title, $post_id, $context ) {
- // Check if the context is relevant to modify the title (don't affect checkmarks)
- if ( ! in_array( $context, ['story-chapter-list', 'shortcode-chapter-list'] ) ) {
- return $title;
- }
-
- // Check if the title should be treated as a spoiler
- // $has_spoiler = get_post_meta( $post_id, '_has_spoiler', true ); // Custom meta to mark spoilers
-
- if ( true ) {
- // Adds the class to the title without changing the HTML structure
- $title = '' . $title . ''; // Using a neutral tag like
- }
-
- return $title;
-}
-add_filter( 'fictioneer_filter_safe_title', 'custom_blur_title_with_spoiler', 10, 3 );
-
/**
* Returns sanitized safe title
*