Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n: don't esc strings with html code #779

Merged
merged 3 commits into from
Jul 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/admin/customers/customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function give_customers_list() {
$customers_table->prepare_items();
?>
<div class="wrap">
<h2><?php esc_html( 'Donors', 'give' ); ?></h2>
<h2><?php esc_html_e( 'Donors', 'give' ); ?></h2>
<?php do_action( 'give_donors_table_top' ); ?>
<form id="give-donors-filter" method="get" action="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-donors' ); ?>">
<?php
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/reporting/tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ function give_tools_recount_stats_display() {
?></span>
<span id="recount-customer-stats"><?php esc_html_e( 'Recalculates the lifetime value and donation counts for all donors.', 'give' ); ?></span>
<?php do_action( 'give_recount_tool_descriptions' ); ?>
<span id="delete-test-transactions"><?php esc_html_e( '<strong>Deletes</strong> all TEST payment records, donors, and related log entries.', 'give' ); ?></span>
<span id="reset-stats"><?php esc_html_e( '<strong>Deletes</strong> ALL transaction records, donors, and related log entries regardless of test or live mode.', 'give' ); ?></span>
<span id="delete-test-transactions"><?php _e( '<strong>Deletes</strong> all TEST payment records, donors, and related log entries.', 'give' ); ?></span>
<span id="reset-stats"><?php _e( '<strong>Deletes</strong> ALL transaction records, donors, and related log entries regardless of test or live mode.', 'give' ); ?></span>
</span>

<span class="spinner"></span>
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ public function credits_screen() {

<?php $this->tabs(); ?>

<p class="about-description"><?php _e( 'Give is created by a dedicated team of developers. If you are interested in contributing please visit the <a href="https://github.com/WordImpress/give" target="_blank">GitHub Repo</a>.', 'give' ); ?></p>
<p class="about-description"><?php printf( __( 'Give is created by a dedicated team of developers. If you are interested in contributing please visit the <a href="%s" target="_blank">GitHub Repo</a>.', 'give' ), esc_url( 'https://github.com/WordImpress/give' ) ); ?></p>

<?php echo $this->contributors(); ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion includes/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function give_load_admin_scripts( $hook ) {
'type_to_search' => sprintf( esc_html( 'Type to search %s', 'give' ), give_get_forms_label_plural() ),
'batch_export_no_class' => esc_html( 'You must choose a method.', 'give' ),
'batch_export_no_reqs' => esc_html( 'Required fields not completed.', 'give' ),
'reset_stats_warn' => esc_html( 'Are you sure you want to reset Give? This process is <strong><em>not reversible</em></strong> and will delete all data regardless of test or live mode. Please be sure you have a recent backup before proceeding.', 'give' ),
'reset_stats_warn' => __( 'Are you sure you want to reset Give? This process is <strong><em>not reversible</em></strong> and will delete all data regardless of test or live mode. Please be sure you have a recent backup before proceeding.', 'give' ),
) );

if ( function_exists( 'wp_enqueue_media' ) && version_compare( $wp_version, '3.5', '>=' ) ) {
Expand Down