mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@54341 git-svn-id: http://core.svn.wordpress.org/trunk@53900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
377db68158
commit
79d521d784
@ -326,7 +326,7 @@ if ( ! function_exists( 'twentyten_continue_reading_link' ) ) :
|
||||
* @return string "Continue Reading" link.
|
||||
*/
|
||||
function twentyten_continue_reading_link() {
|
||||
return ' <a href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) . '</a>';
|
||||
return ' <a href="' . esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) . '</a>';
|
||||
}
|
||||
endif;
|
||||
|
||||
@ -607,7 +607,7 @@ if ( ! function_exists( 'twentyten_posted_on' ) ) :
|
||||
'meta-prep meta-prep-author',
|
||||
sprintf(
|
||||
'<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
|
||||
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' )
|
||||
);
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-beta2-54340';
|
||||
$wp_version = '6.1-beta2-54341';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user