Skip to content

Commit

Permalink
wikify_external_text to work and encyclopedias, but not websites
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Dec 28, 2024
1 parent 99b644a commit 7fa4965
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -2648,8 +2648,13 @@ public function add_if_new(string $param_name, string $value, string $api = ''):
return false;

case 'work':
case 'website':
case 'encyclopedia':
if ($this->blank(WORK_ALIASES)) {
return $this->add($param_name, wikify_external_text($value));
}
return false;

case 'website':
if ($this->blank(WORK_ALIASES)) {
return $this->add($param_name, $value); // Do NOT Sanitize
}
Expand Down

0 comments on commit 7fa4965

Please sign in to comment.