| @@ -1,7 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; | |
| 3 | - | |
| 4 | 2 | class AccuaFormsHelp { |
| 5 | 3 | |
| 6 | 4 | private $helpTextSet; |
| 7 | 5 | private $counter; |
| @@ -112,9 +110,8 @@ | ||
| 112 | 110 | jQuery(document).ready(function($) { |
| 113 | 111 | <?php |
| 114 | 112 | foreach ($this->helpTextSet as $pointer) { |
| 115 | 113 | // error_log(print_r($pointer, true)); |
| 116 | - // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped -- JSON encoded values for JavaScript, properly escaped by json_encode | |
| 117 | 114 | ?> |
| 118 | 115 | $(<?php echo _accua_forms_json_encode($pointer['anchor_id']); ?>).click(function(){ |
| 119 | 116 | $( <?php echo _accua_forms_json_encode($pointer['anchor_id']); ?> ).pointer( { |
| 120 | 117 | content: <?php echo _accua_forms_json_encode($pointer['content']); ?>, |
| @@ -126,9 +123,8 @@ | ||
| 126 | 123 | $("a.close").html(" "); |
| 127 | 124 | //$("a.close").addClass("notice-dismiss"); |
| 128 | 125 | }); |
| 129 | 126 | <?php |
| 130 | - // phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 131 | 127 | } |
| 132 | 128 | ?> |
| 133 | 129 | }); |
| 134 | 130 | /* ]]> */ |