get_post_title Has to be improved
-
Hello,
according my knowledges, the get_post_title is bugged.
(for lcp-catlistdisplayer.php and lcp-post-builder.php)If link_titles=no, the $tag and $css_class isn’t anymode apply
In fact it’s due to return in the middle of the function ..L431 :
return $pre . $lcp_post_title . $post;You can replace by
$title = $pre . $lcp_post_title . $post; if( $tag !== null || $css_class !== null){ $title = $this->assign_style($title, $tag, $css_class); } return $title;but it’s overkill … because “post_suffix” isn’t managed too ..
Cleaner methode could be :
replace :if ( !$link || ( !empty($this->params['link_titles'] ) && ( $this->params['link_titles'] === "false" || $this->params['link_titles'] === "no" ) ) ) { return $pre . $lcp_post_title . $post; } $info = $this->get_post_link($single, $lcp_post_title, (!empty($this->params['title_class']) && empty($this->params['title_tag'])) ? $this->params['title_class'] : null);by
if ( !$link || ( !empty($this->params['link_titles'] ) && ( $this->params['link_titles'] === "false" || $this->params['link_titles'] === "no" ) ) ) { $info = $pre . $lcp_post_title . $post; }else{ $info = $this->get_post_link($single, $lcp_post_title, (!empty($this->params['title_class']) && empty($this->params['title_tag'])) ? $this->params['title_class'] : null); }hope you fix the small issue.
Thx for the mice module !
TFlorian.
The topic ‘get_post_title Has to be improved’ is closed to new replies.