Fix shortcode Transients being saved in admin

This could cause problems, like using the wrong base URL for the pagination.
This commit is contained in:
Tetrakern 2024-10-31 09:20:59 +01:00
parent f14abaa298
commit 0986c06002

View File

@ -134,7 +134,7 @@ if ( ! defined( 'FICTIONEER_ENABLE_STORY_CARD_CACHING' ) ) {
*/ */
function fictioneer_enable_shortcode_transients( $shortcode = null ) { function fictioneer_enable_shortcode_transients( $shortcode = null ) {
if ( is_customize_preview() ) { if ( is_customize_preview() || is_admin() ) {
return false; return false;
} }