From 506769bf14ba196434b626baf03f7a81e7869025 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 2 Nov 2018 06:44:13 -0400 Subject: [PATCH] Update actor identity when theme mods change --- includes/init.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/init.php b/includes/init.php index 37e9985..a3eaf50 100644 --- a/includes/init.php +++ b/includes/init.php @@ -58,7 +58,8 @@ add_action( 'update_option_blogname', function() { add_action( 'update_option_blogdescription', function() { \pterotype\identity\update_identity( PTEROTYPE_BLOG_ACTOR_SLUG ); }); -add_action( 'update_option_site_icon', function() { - \pterotype\identity\update_identity( PTEROTYPE_BLOG_ACTOR_SLUG ); +$theme = \get_option( 'stylesheet' ); +add_action( "update_option_theme_mods_$theme", function() { + \pterotype\identity\update_identity( PTEROTYPE_BLOG_ACTOR_SLUG ); }); ?>