Skip to content
Permalink
Browse files

Fix recent_articles

  • Loading branch information...
bloatware committed Nov 7, 2019
1 parent 0dc822a commit b336886006ac53df672a1805dd03b89c44cd87a7
Showing with 5 additions and 2 deletions.
  1. +5 −2 textpattern/publish/taghandlers.php
@@ -1028,7 +1028,7 @@ function password_protect($atts, $thing = null)
// -------------------------------------------------------------
function recent_articles($atts)
function recent_articles($atts, $thing = null)
{
global $prefs;
@@ -1047,7 +1047,10 @@ function recent_articles($atts)
'no_widow' => '',
), $atts);
$thing = $form ? null : '<txp:permlink><txp:title no_widow="'.($atts['no_widow'] ? '1' : '').'" /></txp:permlink>';
if(!isset($thing) && !$atts['form']) {
$thing = '<txp:permlink><txp:title no_widow="'.($atts['no_widow'] ? '1' : '').'" /></txp:permlink>';
}
unset($atts['no_widow']);
return article_custom($atts, $thing);

0 comments on commit b336886

Please sign in to comment.
You can’t perform that action at this time.