| @@ -136,9 +136,9 @@ | ||
| 136 | 136 | '<span class="switch-light-visual-label%1$s" id="%2$s">%3$s</span>%4$s', |
| 137 | 137 | $strong_class, // phpcs:ignore WordPress.Security.EscapeOutput -- Reason: $strong_class output is hardcoded. |
| 138 | 138 | \esc_attr( $this->var . '-label' ), |
| 139 | 139 | \esc_html( $this->label ), |
| 140 | - $this->help // phpcs:ignore WordPress.Security.EscapeOutput -- Reason: The help contains HTML. | |
| 140 | + $this->help, // phpcs:ignore WordPress.Security.EscapeOutput -- Reason: The help contains HTML. | |
| 141 | 141 | ); |
| 142 | 142 | $output .= '<label class="' . $class . '"><b class="switch-yoast-seo-jaws-a11y"> </b>'; |
| 143 | 143 | $output .= \sprintf( |
| 144 | 144 | '<input type="checkbox" aria-labelledby="%1$s" id="%2$s" name="%3$s" value="on"%4$s%5$s/>', |
| @@ -145,9 +145,9 @@ | ||
| 145 | 145 | \esc_attr( $this->var . '-label' ), |
| 146 | 146 | \esc_attr( $this->var ), |
| 147 | 147 | \esc_attr( $this->name ), |
| 148 | 148 | \checked( $this->value, 'on', false ), // phpcs:ignore WordPress.Security.EscapeOutput -- Reason: The output is hardcoded by WordPress. |
| 149 | - $this->disabled_attribute // phpcs:ignore WordPress.Security.EscapeOutput -- Reason: $disabled_attribute output is hardcoded. | |
| 149 | + $this->disabled_attribute, // phpcs:ignore WordPress.Security.EscapeOutput -- Reason: $disabled_attribute output is hardcoded. | |
| 150 | 150 | ); |
| 151 | 151 | $output .= '<span aria-hidden="true">'; |
| 152 | 152 | $output .= '<span>' . \esc_html( $off_button ) . '</span>'; |
| 153 | 153 | $output .= '<span>' . \esc_html( $on_button ) . '</span>'; |