mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Add some missing braces to get_bookmarks() which was causing an early return. Introduced in [25934]. See #25468. Fixes #25874
Built from https://develop.svn.wordpress.org/trunk@26046 git-svn-id: http://core.svn.wordpress.org/trunk@25971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8e494481f8
commit
90b6ccc88d
@ -135,7 +135,7 @@ function get_bookmarks($args = '') {
|
||||
$cache = array();
|
||||
$key = md5( serialize( $r ) );
|
||||
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 ];
|
||||
/**
|
||||
* Filter the returned list of bookmarks.
|
||||
@ -153,6 +153,7 @@ function get_bookmarks($args = '') {
|
||||
* @param array $r An array of bookmark query arguments.
|
||||
*/
|
||||
return apply_filters( 'get_bookmarks', $bookmarks, $r );
|
||||
}
|
||||
}
|
||||
|
||||
if ( !is_array($cache) )
|
||||
|
Loading…
Reference in New Issue
Block a user