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:
parent
f14abaa298
commit
0986c06002
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user