From e5c7ebc7ef56ebe1bc5b08962c051204faaa4632 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Fri, 22 Jul 2022 23:34:42 +0200 Subject: [PATCH] ensure variable is of type int --- inc/template-tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 355be24c..9bd4367e 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -40,7 +40,7 @@ if ( ! function_exists( 'understrap_posted_on' ) ) { sprintf( ' %1$s %3$s', $posted_on ? esc_html_x( 'by', 'post author', 'understrap' ) : esc_html_x( 'Posted by', 'post author', 'understrap' ), - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + esc_url( get_author_posts_url( (int) get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ) );