Skip to content

Conversation

@szepeviktor
Copy link
Contributor

@szepeviktor szepeviktor commented Dec 9, 2025

There were two esc_* function calls.

// Merge links & return
return array_merge( $actions, array(
'sponsor' => '<a href="' . esc_url( $url ) . '">' . esc_html( $text ) . '</a>'
'sponsor' => '<a href="' . esc_url( $url ) . '">' . esc_html_x( 'Sponsor', 'verb', 'wp-user-activity' ) . '</a>'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'sponsor' => '<a href="' . esc_url( $url ) . '">' . esc_html_x( 'Sponsor', 'verb', 'wp-user-activity' ) . '</a>'
'sponsor' => sprintf( '<a href="%s">%s</a>', esc_url( $url ), esc_html_x( 'Sponsor', 'verb', 'wp-user-activity' ) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant