diff --git a/src/modules/divi-integration/divi-integration.php b/src/modules/divi-integration/divi-integration.php index bc6c1534..51b306c6 100644 --- a/src/modules/divi-integration/divi-integration.php +++ b/src/modules/divi-integration/divi-integration.php @@ -244,13 +244,10 @@ public function resolveDefaultDynamicContent($content, $name, $settings, $post_i break; } - $avatarImgTag = $author->get_avatar(); - // Extract only the URL. - preg_match('/src=[\'"]([^\'"]+)[\'"]/', $avatarImgTag, $matches); - if (is_array($matches) && ! empty($matches)) { - $content = $matches[1]; + $content = $author->get_avatar_url(); + if (is_array($content)) { + $content = $content['url']; } - break; } // Handle in post type URL options.