Skip to content

Commit

Permalink
Merge pull request #1880 from mehul0810/issue/1249
Browse files Browse the repository at this point in the history
Issue/1249
  • Loading branch information
Devin Walker committed Jul 18, 2017
2 parents ebb6635 + 28b0276 commit b5b9576
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion includes/admin/donors/donors.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,18 @@ function give_donor_view( $donor ) {
<span data-key="user_id"><?php esc_html_e( 'None', 'give' ); ?></span>
<?php } ?>
<?php if ( current_user_can( $donor_edit_role ) && intval( $donor->user_id ) > 0 ) { ?>
<span class="disconnect-user"> - <a id="disconnect-donor" href="#disconnect" aria-label="<?php esc_attr_e( 'Disconnects the current user ID from this donor record.', 'give' ); ?>"><?php esc_html_e( 'Disconnect User', 'give' ); ?></a></span>
<span class="disconnect-user">
-
<a id="disconnect-donor" href="#disconnect" aria-label="<?php esc_attr_e( 'Disconnects the current user ID from this donor record.', 'give' ); ?>">
<?php esc_html_e( 'Disconnect User', 'give' ); ?>
</a>
</span>
<span class="view-user-profile">
|
<a id="view-user-profile" href="<?php echo 'user-edit.php?user_id=' . $donor->user_id; ?>" aria-label="<?php esc_attr_e( 'View User Profile of current user ID.', 'give' ); ?>">
<?php esc_html_e( 'View User Profile', 'give' ); ?>
</a>
</span>
<?php } ?>
</span>
</td>
Expand Down
2 changes: 1 addition & 1 deletion includes/emails/class-give-email-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ function give_load_email_tags() {
*/
do_action( 'give_add_email_tags' );
}
add_action( 'init', 'give_load_email_tags', - 999 );

add_action( 'give_init', 'give_load_email_tags' );

/**
* Add default Give email template tags.
Expand Down

0 comments on commit b5b9576

Please sign in to comment.