Skip to content

Commit

Permalink
Update escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Sep 29, 2024
1 parent 0d52502 commit 7e1850a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions components/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ public function register_config() {
'type' => 'html',
'html_content' => sprintf(
'<div class="pods-ui-notice-admin pods-ui-notice-warning"><p>⚠️&nbsp;&nbsp;%1s - <a href="%2$s" target="_blank" rel="noopener noreferrer">%3$s</a></p></div>',
__( 'PHP detected, this feature is deprecated', 'pods' ),
esc_html__( 'PHP detected, this feature is deprecated', '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' )
),
'wildcard-on' => [
'code' => [
Expand All @@ -234,9 +234,9 @@ public function register_config() {
'type' => 'html',
'html_content' => sprintf(
'<div class="pods-ui-notice-admin pods-ui-notice-warning"><p>⚠️&nbsp;&nbsp;%1s - <a href="%2$s" target="_blank" rel="noopener noreferrer">%3$s</a></p></div>',
__( 'Precode detected, this feature is deprecated', 'pods' ),
esc_html__( 'Precode detected, this feature is deprecated', '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' )
),
'excludes-on' => [
'precode' => '',
Expand Down Expand Up @@ -697,9 +697,9 @@ public function edit_page_form() {
sprintf(
'<p><strong>%1$s:</strong> %2$s</p><p><a href="%3$s" target="_blank" rel="noopener noreferrer">%4$s</a></p>',
__( '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,
Expand All @@ -710,9 +710,9 @@ public function edit_page_form() {
sprintf(
'<p><strong>%1$s:</strong> %2$s</p><p><a href="%3$s" target="_blank" rel="noopener noreferrer">%4$s</a></p>',
__( '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'
);
Expand Down
16 changes: 8 additions & 8 deletions components/Templates/includes/element-view_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

printf(
'<div class="pods-ui-notice-admin pods-ui-notice-warning"><p>⚠️&nbsp;&nbsp;%1s - <a href="%2$s" target="_blank" rel="noopener noreferrer">%3$s</a></p></div>',
__( 'PHP detected, this feature is deprecated', 'pods' ),
esc_html__( 'PHP detected, this feature is deprecated', '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' )
);
?>

Expand All @@ -38,10 +38,10 @@
pods_message(
sprintf(
'<p><strong>%1$s:</strong> %2$s</p><p><a href="%3$s" target="_blank" rel="noopener noreferrer">%4$s</a></p>',
__( '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,
Expand All @@ -53,10 +53,10 @@
pods_message(
sprintf(
'<p><strong>%1$s:</strong> %2$s</p><p><a href="%3$s" target="_blank" rel="noopener noreferrer">%4$s</a></p>',
__( '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'
);
Expand Down

0 comments on commit 7e1850a

Please sign in to comment.