Escape class attribute in `edit_post_link()` after [34098].
Props Offereins. See #30563. Built from https://develop.svn.wordpress.org/trunk@34117 git-svn-id: http://core.svn.wordpress.org/trunk@34085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4af3a3374e
commit
d9bc36d068
|
@ -1226,7 +1226,7 @@ function edit_post_link( $text = null, $before = '', $after = '', $id = 0, $clas
|
||||||
$text = __( 'Edit This' );
|
$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.
|
* Filter the post edit link anchor tag.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34116';
|
$wp_version = '4.4-alpha-34117';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue