From 0986c06002828614987d7ec362f04becd507ecf6 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:20:59 +0100 Subject: [PATCH] Fix shortcode Transients being saved in admin This could cause problems, like using the wrong base URL for the pagination. --- includes/functions/_service-caching.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions/_service-caching.php b/includes/functions/_service-caching.php index 1a872198..656dfcbb 100644 --- a/includes/functions/_service-caching.php +++ b/includes/functions/_service-caching.php @@ -134,7 +134,7 @@ if ( ! defined( 'FICTIONEER_ENABLE_STORY_CARD_CACHING' ) ) { */ function fictioneer_enable_shortcode_transients( $shortcode = null ) { - if ( is_customize_preview() ) { + if ( is_customize_preview() || is_admin() ) { return false; }