From deda9883685f5ccb67dd6368eb4bce22bcaa8266 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 8 Nov 2013 02:19:22 +0000 Subject: [PATCH] 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 --- src/wp-includes/bookmark.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/bookmark.php b/src/wp-includes/bookmark.php index ec31fde65c..af418167cd 100644 --- a/src/wp-includes/bookmark.php +++ b/src/wp-includes/bookmark.php @@ -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) )