diff --git a/components/Pages.php b/components/Pages.php index 35df78555a..842e1ccf02 100644 --- a/components/Pages.php +++ b/components/Pages.php @@ -205,9 +205,9 @@ public function register_config() { 'type' => 'html', 'html_content' => sprintf( '
⚠️ %1s - %3$s
⚠️ %1s - %3$s
%1$s: %2$s
', __( 'Pod Page Error', 'pods' ), - __( 'This Pod Page contains PHP code that will not run due to security restrictions in Pods. To enable PHP code, you must configure your website to allow PHP by setting the constant PODS_DISABLE_EVAL to false.', 'pods' ), + esc_html__( 'This Pod Page contains PHP code that will not run due to security restrictions in Pods. To enable PHP code, you must configure your website to allow PHP by setting the constant PODS_DISABLE_EVAL to false.', 'pods' ), 'https://docs.pods.io/displaying-pods/pod-page-template-hierarchy-for-themes/', - __( 'Switch to file-based Pod Pages', 'pods' ) + esc_html__( 'Switch to file-based Pod Pages', 'pods' ) ), 'error', false, @@ -710,9 +710,9 @@ public function edit_page_form() { sprintf( '%1$s: %2$s
', __( 'Pod Page Warning', 'pods' ), - __( 'This Pod Page contains PHP code that will no longer run in Pods 3.3+.', 'pods' ), + esc_html__( 'This Pod Page contains PHP code that will no longer run in Pods 3.3+.', 'pods' ), 'https://docs.pods.io/displaying-pods/pod-page-template-hierarchy-for-themes/', - __( 'Switch to file-based Pod Pages', 'pods' ) + esc_html__( 'Switch to file-based Pod Pages', 'pods' ) ), 'warning' ); diff --git a/components/Templates/includes/element-view_template.php b/components/Templates/includes/element-view_template.php index 35c030d062..13b4f98c1f 100644 --- a/components/Templates/includes/element-view_template.php +++ b/components/Templates/includes/element-view_template.php @@ -27,9 +27,9 @@ printf( '⚠️ %1s - %3$s
%1$s: %2$s
', - __( 'Pod Template Error', 'pods' ), - __( 'This template contains PHP code that will not run due to security restrictions in Pods. To enable PHP code, you must configure your website to allow PHP by setting the constant PODS_DISABLE_EVAL to false.', 'pods' ), + esc_html__( 'Pod Template Error', 'pods' ), + esc_html__( 'This template contains PHP code that will not run due to security restrictions in Pods. To enable PHP code, you must configure your website to allow PHP by setting the constant PODS_DISABLE_EVAL to false.', 'pods' ), 'https://docs.pods.io/displaying-pods/pod-template-hierarchy-for-themes/', - __( 'Switch to file-based Pod Templates', 'pods' ) + esc_html__( 'Switch to file-based Pod Templates', 'pods' ) ), 'error', false, @@ -53,10 +53,10 @@ pods_message( sprintf( '%1$s: %2$s
', - __( 'Pod Template Warning', 'pods' ), - __( 'This template contains PHP code that will no longer run in Pods 3.3+.', 'pods' ), + esc_html__( 'Pod Template Warning', 'pods' ), + esc_html__( 'This template contains PHP code that will no longer run in Pods 3.3+.', 'pods' ), 'https://docs.pods.io/displaying-pods/pod-template-hierarchy-for-themes/', - __( 'Switch to file-based Pod Templates', 'pods' ) + esc_html__( 'Switch to file-based Pod Templates', 'pods' ) ), 'warning' );