Theme: Link to profile slugs to avoid 404s.

This commit is contained in:
Ian Dunn 2019-10-31 10:54:37 -05:00
parent 38fe19036d
commit 0c250daa7d
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB

View file

@ -102,7 +102,7 @@ get_header(); ?>
'<a class="pledge-contributor__name" href="%1$s">%2$s</a>', '<a class="pledge-contributor__name" href="%1$s">%2$s</a>',
sprintf( sprintf(
'https://profiles.wordpress.org/%s/', 'https://profiles.wordpress.org/%s/',
sanitize_key( $contributor->user_login ) // phpcs:ignore WordPress.Security.EscapeOutput -- sanitize_key will catch any security issues. sanitize_key( $contributor->user_nicename ) // phpcs:ignore WordPress.Security.EscapeOutput -- sanitize_key will catch any security issues.
), ),
esc_html( $contributor->display_name ) esc_html( $contributor->display_name )
); );