// Check, if the page can hold some kind of content, otherwise do nothing
$title = $this->getRelevantTitle();
- if ( $title->canExist() ) {
+ if ( $title->canExist() && $title->canHaveTalkPage() ) {
if ( $title->isTalkPage() ) {
$titles[] = $title->getSubjectPage();
} else {
}
/**
+ * @deprecated since 1.34, use getSearchLink() instead.
* @return string
*/
function escapeSearchLink() {
+ wfDeprecated( __METHOD__, '1.34' );
return htmlspecialchars( $this->getSearchLink() );
}