mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 01:22:47 +01:00
Escape class attribute in edit_post_link()
after [34098].
Props Offereins. See #30563. git-svn-id: https://develop.svn.wordpress.org/trunk@34117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
08098026ce
commit
13382740b9
@ -1226,7 +1226,7 @@ function edit_post_link( $text = null, $before = '', $after = '', $id = 0, $clas
|
||||
$text = __( 'Edit This' );
|
||||
}
|
||||
|
||||
$link = '<a class="' . $class . '" href="' . $url . '">' . $text . '</a>';
|
||||
$link = '<a class="' . esc_attr( $class ) . '" href="' . $url . '">' . $text . '</a>';
|
||||
|
||||
/**
|
||||
* Filter the post edit link anchor tag.
|
||||
|
Loading…
x
Reference in New Issue
Block a user