Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Oct 7, 2022
2 parents a73a1de + 20b432a commit 330d845
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,10 @@ function pk_paging($pnum = 2)
}
}
}
if ($paged < $max_page - $pnum - 1) echo "<li><a href='javascript:void(0)'>...</a></li>";
if ($paged < $max_page - $pnum - 1) {
echo "<li><a href='javascript:void(0)'>...</a></li>";
page_link($max_page);
}
echo '<li class="next-page">';
next_posts_link('&raquo;');
echo '</li>';
Expand Down Expand Up @@ -445,8 +448,8 @@ function content_img_add_alt_title($content)
preg_match_all('/<img (.*?)\/>/', $content, $images);
if (!is_null($images)) {
foreach ($images[1] as $index => $value) {
$new_img = str_replace('<img', '<img title=' . $post->post_title . '
alt=' . $post->post_title, $images[0][$index]);
$new_img = str_replace('<img', '<img title="'. $post->post_title . '"
alt="' . $post->post_title .'"', $images[0][$index]);
$content = str_replace($images[0][$index], $new_img, $content);
}
}
Expand Down

0 comments on commit 330d845

Please sign in to comment.