Skip to content
Open
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
7 changes: 2 additions & 5 deletions wp-user-activity/includes/sponsor.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,11 @@
*/
function filter_plugin_action_links( $actions = array() ) {

// Sponsor text
$text = esc_html_x( 'Sponsor', 'verb', 'wp-user-activity' );

// Sponsor URL
$url = 'https://buy.stripe.com/7sI3cd2tK1Cy2lydQR';
$url = 'https://buy.stripe.com/7sI3cd2tK1Cy2lydQR';

// 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' ) )

) );
}