| @@ -1,11 +1,17 @@ | ||
| 1 | 1 | <?php |
| 2 | + | |
| 3 | +// Exit if accessed directly. | |
| 4 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 5 | + exit; | |
| 6 | +} | |
| 7 | + | |
| 2 | 8 | /** |
| 3 | 9 | * Add a hidden field in settings area. |
| 4 | 10 | * |
| 5 | 11 | * @author David Bisset |
| 6 | 12 | * @package Charitable/Admin View/Settings |
| 7 | - * @copyright Copyright (c) 2022, WP Charitable LLC | |
| 13 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 8 | 14 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 | 15 | * @since 1.0.0 |
| 10 | 16 | * @version 1.0.0 |
| 11 | 17 | */ |
| @@ -11,8 +17,8 @@ | ||
| 11 | 17 | */ |
| 12 | 18 | |
| 13 | 19 | ?> |
| 14 | 20 | <input type="hidden" |
| 15 | - id="<?php printf( 'charitable_settings_%s', implode( '_', $view_args['key'] ) ); ?>" | |
| 16 | - name="<?php printf( 'charitable_settings[%s]', $view_args['name'] ); ?>" | |
| 21 | + id="<?php printf( 'charitable_settings_%s', implode( '_', $view_args['key'] ) ); // phpcs:ignore ?>" | |
| 22 | + name="<?php printf( 'charitable_settings[%s]', $view_args['name'] ); // phpcs:ignore ?>" | |
| 17 | 23 | value="<?php echo esc_attr( $view_args['value'] ); ?>" |
| 18 | 24 | /> |