BUG: $this->get_author($post); Malformed markup
-
URL not enclosed within quotes.
$this->get_author($post); produces Authorname
Error on line 288 includes/lcp-catlist.php
public function get_author_to_show($single){ if ($this->params['author'] == 'yes'): $lcp_userdata = get_userdata($single->post_author); $author_name = $lcp_userdata->display_name; if($this->utils->lcp_not_empty('author_posts_link') && $this->params['author_posts_link'] == 'yes'){ $link = get_author_posts_url($lcp_userdata->ID); return "<a href=" . $link . " title='" . $author_name . "'>" . $author_name . "</a>"; } else { return $author_name; } else: return null; endif; }
Should be
public function get_author_to_show($single){ if ($this->params['author'] == 'yes'): $lcp_userdata = get_userdata($single->post_author); $author_name = $lcp_userdata->display_name; if($this->utils->lcp_not_empty('author_posts_link') && $this->params['author_posts_link'] == 'yes'){ $link = get_author_posts_url($lcp_userdata->ID); return "<a href='" . $link . "' title='" . $author_name . "'>" . $author_name . "</a>"; } else { return $author_name; } else: return null; endif; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘BUG: $this->get_author($post); Malformed markup’ is closed to new replies.