← All changes
|
inc/page-builders/bricks/elements/payment-history-widget.php
+16
-0
2.12.2
→
2.12.8
View file →
| @@ -66,8 +66,24 @@ | ||
| 66 | 66 | ]; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | + * Enqueue the payment-history stylesheet. NOTE: Bricks fires this at render time | |
| 71 | + * (`Frontend::render_element()` → `Element::init()`), which runs after `wp_head`, so | |
| 72 | + * this alone would print the CSS in the footer → FOUC. The head-load is handled | |
| 73 | + * separately by `Service_Provider::maybe_enqueue_payment_history_assets()`, which | |
| 74 | + * detects this element on `wp_enqueue_scripts`; this override stays only as a | |
| 75 | + * belt-and-braces fallback. The handle is registered by | |
| 76 | + * `Payment_History_Shortcode::register_assets()` (priority 1). | |
| 77 | + * | |
| 78 | + * @since 2.12.3 | |
| 79 | + * @return void | |
| 80 | + */ | |
| 81 | + public function enqueue_scripts() { | |
| 82 | + wp_enqueue_style( 'srfm-payment-history' ); | |
| 83 | + } | |
| 84 | + | |
| 85 | + /** | |
| 70 | 86 | * Set element controls. |
| 71 | 87 | * |
| 72 | 88 | * @since 2.12.2 |
| 73 | 89 | * @return void |