diff --git a/wp-includes/bookmark.php b/wp-includes/bookmark.php index 97197e3d05..37a25a80f6 100644 --- a/wp-includes/bookmark.php +++ b/wp-includes/bookmark.php @@ -307,7 +307,7 @@ function get_bookmarks( $args = '' ) { $query .= " $exclusions $inclusions $search"; $query .= " ORDER BY $orderby $order"; if ( -1 != $parsed_args['limit'] ) { - $query .= ' LIMIT ' . $parsed_args['limit']; + $query .= ' LIMIT ' . absint( $parsed_args['limit'] ); } $results = $wpdb->get_results( $query ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8e9bee69cd..047301bac0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53958'; +$wp_version = '6.1-alpha-53959'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.