Add some missing braces to get_bookmarks() which was causing an early return. Introduced in [25934]. See #25468. Fixes #25874
git-svn-id: https://develop.svn.wordpress.org/trunk@26046 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fcc86be587
commit
deda988368
|
@ -135,7 +135,7 @@ function get_bookmarks($args = '') {
|
||||||
$cache = array();
|
$cache = array();
|
||||||
$key = md5( serialize( $r ) );
|
$key = md5( serialize( $r ) );
|
||||||
if ( $cache = wp_cache_get( 'get_bookmarks', 'bookmark' ) ) {
|
if ( $cache = wp_cache_get( 'get_bookmarks', 'bookmark' ) ) {
|
||||||
if ( is_array($cache) && isset( $cache[ $key ] ) )
|
if ( is_array($cache) && isset( $cache[ $key ] ) ) {
|
||||||
$bookmarks = $cache[ $key ];
|
$bookmarks = $cache[ $key ];
|
||||||
/**
|
/**
|
||||||
* Filter the returned list of bookmarks.
|
* Filter the returned list of bookmarks.
|
||||||
|
@ -154,6 +154,7 @@ function get_bookmarks($args = '') {
|
||||||
*/
|
*/
|
||||||
return apply_filters( 'get_bookmarks', $bookmarks, $r );
|
return apply_filters( 'get_bookmarks', $bookmarks, $r );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( !is_array($cache) )
|
if ( !is_array($cache) )
|
||||||
$cache = array();
|
$cache = array();
|
||||||
|
|
Loading…
Reference in New Issue