Sanitize the class passed to `wp_list_bookmarks()` and allow passing an array.
Props ryan, obenland. Fixes #23150. Built from https://develop.svn.wordpress.org/trunk@32906 git-svn-id: http://core.svn.wordpress.org/trunk@32877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
00de0e6341
commit
744cc75cd1
|
@ -214,6 +214,12 @@ function wp_list_bookmarks( $args = '' ) {
|
||||||
|
|
||||||
$output = '';
|
$output = '';
|
||||||
|
|
||||||
|
if ( ! is_array( $r['class'] ) ) {
|
||||||
|
$r['class'] = explode( ' ', $r['class'] );
|
||||||
|
}
|
||||||
|
$r['class'] = array_map( 'sanitize_html_class', $r['class'] );
|
||||||
|
$r['class'] = trim( join( ' ', $r['class'] ) );
|
||||||
|
|
||||||
if ( $r['categorize'] ) {
|
if ( $r['categorize'] ) {
|
||||||
$cats = get_terms( 'link_category', array(
|
$cats = get_terms( 'link_category', array(
|
||||||
'name__like' => $r['category_name'],
|
'name__like' => $r['category_name'],
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32905';
|
$wp_version = '4.3-alpha-32906';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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