Skip to content

Commit

Permalink
padding correction
Browse files Browse the repository at this point in the history
  • Loading branch information
liedekef committed Dec 30, 2024
1 parent 10b51f7 commit de7b3a3
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions eme-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -2199,29 +2199,28 @@ function eme_replace_generic_placeholders( $format, $target = 'html' ) {
} else {
$t_person = '';
}
if (!empty($t_person) && !empty($t_person['person_id']))
$replacement = join( ', ', eme_get_persongroup_names( $t_person['person_id'] ) );
if ( $target == 'html' ) {
$replacement = eme_esc_html( $replacement );
$replacement = apply_filters( 'eme_general', $replacement );
} else {
$replacement = apply_filters( 'eme_text', $replacement );
}
} elseif ( preg_match( '/#_USER_MEMBERSHIPS/', $result ) ) {
if ( $wp_id ) {
$t_person = eme_get_person_by_wp_id( $wp_id );
} else {
if (!empty($t_person) && !empty($t_person['person_id']))
$replacement = join( ', ', eme_get_persongroup_names( $t_person['person_id'] ) );
if ( $target == 'html' ) {
$replacement = eme_esc_html( $replacement );
$replacement = apply_filters( 'eme_general', $replacement );
} else {
$replacement = apply_filters( 'eme_text', $replacement );
}
} elseif ( preg_match( '/#_USER_MEMBERSHIPS/', $result ) ) {
if ( $wp_id ) {
$t_person = eme_get_person_by_wp_id( $wp_id );
} else {
$t_person = '';
}
if (!empty($t_person) && !empty($t_person['person_id']))
$replacement = eme_get_activemembership_names_by_personid( $t_person['person_id'] );
if ( $target == 'html' ) {
$replacement = eme_esc_html( $replacement );
$replacement = apply_filters( 'eme_general', $replacement );
} else {
$replacement = apply_filters( 'eme_text', $replacement );
}

if (!empty($t_person) && !empty($t_person['person_id']))
$replacement = eme_get_activemembership_names_by_personid( $t_person['person_id'] );
if ( $target == 'html' ) {
$replacement = eme_esc_html( $replacement );
$replacement = apply_filters( 'eme_general', $replacement );
} else {
$replacement = apply_filters( 'eme_text', $replacement );
}
} elseif ( preg_match( '/#_INCLUDE_TEMPLATE\{(.+?)\}$/', $result, $matches ) ) {
$template_id = $matches[1];
if ( preg_match( '/#_/', $template_id ) ) {
Expand Down

0 comments on commit de7b3a3

Please sign in to comment.