Merge pull request #19061 from christianwach/lab-core-2217
[civicrm-core.git] / CRM / Utils / System / WordPress.php
index 0963d01df0645e046dd4c0837bac79cc55a36806..1b2d22ebf2b8311135ed3b00f562bc69c45eb97e 100644 (file)
@@ -271,6 +271,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
       add_action('wp_head', [__CLASS__, '_showHTMLHead']);
       // back-end views
       add_action('admin_head', [__CLASS__, '_showHTMLHead']);
+      $registered = TRUE;
     }
     CRM_Core_Region::instance('wp_head')->add([
       'markup' => $head,