From ea4d0576df32da2aed57062517687a1a27cfab35 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 27 Sep 2022 22:24:13 +0000 Subject: [PATCH] Twenty Ten: Escape `get_permalink()` where appropriate in `functions.php` file. This changeset adds missing `esc_url()` to some instances of `get_permalink()` used in Twenty Ten, as per WordPress Coding Standards. Props hztyfoon, robinwpdeveloper, mukesh27, rudlinkon, fuadragib01. Fixes #56667. git-svn-id: https://develop.svn.wordpress.org/trunk@54341 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyten/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentyten/functions.php b/src/wp-content/themes/twentyten/functions.php index a36a293eb0..2996bd2450 100644 --- a/src/wp-content/themes/twentyten/functions.php +++ b/src/wp-content/themes/twentyten/functions.php @@ -326,7 +326,7 @@ if ( ! function_exists( 'twentyten_continue_reading_link' ) ) : * @return string "Continue Reading" link. */ function twentyten_continue_reading_link() { - return ' ' . __( 'Continue reading ', 'twentyten' ) . ''; + return ' ' . __( 'Continue reading ', 'twentyten' ) . ''; } endif; @@ -607,7 +607,7 @@ if ( ! function_exists( 'twentyten_posted_on' ) ) : 'meta-prep meta-prep-author', sprintf( '', - get_permalink(), + esc_url( get_permalink() ), esc_attr( get_the_time() ), get_the_date() ), @@ -648,7 +648,7 @@ if ( ! function_exists( 'twentyten_posted_in' ) ) : $posted_in, get_the_category_list( ', ' ), $tags_list, - get_permalink(), + esc_url( get_permalink() ), the_title_attribute( 'echo=0' ) ); }