- Fixes incorrect newsletter issue number display

- Updates newsletter 'last post title' logic
- Updates shortcode extraction regex to allow limiting extraction of only
  specific categories
- Updates unit tests
- Closes #380
This commit is contained in:
Vlad
2016-04-21 19:14:06 -04:00
parent e4a5438512
commit dd8f58e35e
4 changed files with 38 additions and 15 deletions

View File

@ -25,7 +25,7 @@ class Links {
. ')\\1#';
preg_match_all($regex, $text, $links);
$shortcodes = new Shortcodes();;
$shortcodes = $shortcodes->extract($text);
$shortcodes = $shortcodes->extract($text, $limit = array('subscription'));
return array_merge(
array_unique($links[2]),
$shortcodes