| @@ -3,16 +3,19 @@ | ||
| 3 | 3 | * Displays the table header. |
| 4 | 4 | * |
| 5 | 5 | * Override this template by copying it to yourtheme/charitable/tables/header.php |
| 6 | 6 | * |
| 7 | - * @author Studio 164a | |
| 7 | + * @author WP Charitable LLC | |
| 8 | 8 | * @package Charitable/Templates/Tables |
| 9 | 9 | * @since 1.5.0 |
| 10 | 10 | * @version 1.5.0 |
| 11 | + * @version 1.8.8.6 | |
| 11 | 12 | */ |
| 12 | 13 | |
| 13 | 14 | // Exit if accessed directly. |
| 14 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 15 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 16 | + exit; | |
| 17 | +} | |
| 15 | 18 | |
| 16 | 19 | if ( ! array_key_exists( 'helper', $view_args ) ) { |
| 17 | 20 | return; |
| 18 | 21 | } |
| @@ -18,8 +21,8 @@ | ||
| 18 | 21 | } |
| 19 | 22 | |
| 20 | 23 | ?> |
| 21 | 24 | <tr> |
| 22 | - <?php foreach ( $view_args['helper']->columns as $key => $header ) : ?> | |
| 23 | - <th scope="col" class="charitable-table-header-<?php echo esc_attr( $key ) ?>"><?php echo $header ?></th> | |
| 25 | + <?php foreach ( $view_args['helper']->columns as $charitable_key => $charitable_header ) : ?> | |
| 26 | + <th scope="col" class="charitable-table-header-<?php echo esc_attr( $charitable_key ) ?>"><?php echo wp_kses_post( $charitable_header ) ?></th> | |
| 24 | 27 | <?php endforeach ?> |
| 25 | 28 | </tr> |