Fix CI (round 3): stub esc_attr__() in bootstrap

PRV_Dashboard_Renderer::render_trendline() uses esc_attr__() (the
WP function combining esc_attr + translation) for the canvas
aria-label. The stub was missing; PHP fatal on line 112 when
test-dashboard-panel.php called render_trendline() directly.
This commit is contained in:
Engineer (geomonitor)
2026-06-14 13:02:41 +00:00
parent b3a96cf627
commit da25f0d9cb

View File

@@ -151,6 +151,7 @@ function __( string $text, string $domain = 'default' ): string { return $text;
function _n( string $single, string $plural, int $number, string $domain = 'default' ): string { return 1 === $number ? $single : $plural; }
function esc_html( string $text ): string { return htmlspecialchars( $text, ENT_QUOTES ); }
function esc_html__( string $text, string $domain = 'default' ): string { return esc_html( $text ); }
function esc_attr__( string $text, string $domain = 'default' ): string { return esc_attr( $text ); }
function esc_attr( string $text ): string { return htmlspecialchars( $text, ENT_QUOTES ); }
function esc_textarea( string $text ): string { return htmlspecialchars( $text, ENT_QUOTES ); }
function esc_js( string $text ): string { return addslashes( $text ); }