fix: match all blog* hostnames in rdata analytics mu-plugin

bloggr, blogfr, and blognl were falling through to the
p2pfoundation.net UUID instead of the blog UUID.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-10 14:16:56 -07:00
parent 100bca5910
commit 52e66e8561
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@
add_action('wp_head', function () {
$host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '';
if (strpos($host, 'blog.p2pfoundation') !== false) {
// All blog variants (blog, bloggr, blogfr, blognl) share the blog UUID
if (preg_match('/^blog/', $host)) {
$id = '1faf3e11-797c-4733-90c3-c7f11a2592c5';
} else {
$id = '818b3200-081b-470d-a7e6-b1c25c367ff8';