I tried the solution that was made for 4.7 where i edited: modules/blog/blog.module and changed the following to 5 but it still doesn't work. Is there something else that I might be missing. This looks like its the right place to edit this but its not working.

/**
* Implementation of hook_block().
*
* Displays the most recent 10 blog titles.
*/
function blog_block($op = 'list', $delta = 0) {
global $user;
if ($op == 'list') {
$block[0]['info'] = t('Recent blog posts');
return $block;
}
else if ($op == 'view') {
if (user_access('access content')) {
$result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"), 0, 5);
if (db_num_rows($result)) {
$block['content'] = node_title_list($result);
$block['content'] .= '

';
$block['subject'] = t('Recent blog posts');
return $block;
}
}
}
}