| @@ -7,8 +7,9 @@ | ||
| 7 | 7 | * @author WP Charitable LLC |
| 8 | 8 | * @package Charitable/Templates/Campaign |
| 9 | 9 | * @since 1.2.3 |
| 10 | 10 | * @version 1.6.29 |
| 11 | + * @version 1.8.8.6 | |
| 11 | 12 | */ |
| 12 | 13 | |
| 13 | 14 | // Exit if accessed directly. |
| 14 | 15 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -14,16 +15,16 @@ | ||
| 14 | 15 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | 16 | exit; |
| 16 | 17 | } |
| 17 | 18 | |
| 18 | -/* @var Charitable_Campaign */ | |
| 19 | -$campaign = $view_args['campaign']; | |
| 19 | +$charitable_campaign = $view_args['campaign']; | |
| 20 | 20 | |
| 21 | 21 | ?> |
| 22 | 22 | <p> |
| 23 | 23 | <a class="<?php echo esc_attr( charitable_get_button_class( 'read-more' ) ); ?>" |
| 24 | - href="<?php echo get_permalink( $campaign->ID ); ?>" | |
| 25 | - aria-label="<?php echo esc_attr( sprintf( _x( 'Continue reading about %s', 'Continue reading about campaign', 'charitable' ), get_the_title( $campaign->ID ) ) ); ?>" | |
| 24 | + href="<?php echo esc_url( get_permalink( $charitable_campaign->ID ) ); ?>" | |
| 25 | + <?php /* translators: %s: campaign title */ ?> | |
| 26 | + aria-label="<?php echo esc_attr( sprintf( _x( 'Continue reading about %s', 'Continue reading about campaign', 'charitable' ), get_the_title( $charitable_campaign->ID ) ) ); ?>" | |
| 26 | 27 | > |
| 27 | - <?php _e( 'Read More', 'charitable' ); ?> | |
| 28 | + <?php esc_html_e( 'Read More', 'charitable' ); ?> | |
| 28 | 29 | </a> |
| 29 | 30 | </p> |