Camen Design Forum

Delete

(Leave this as-is, it’s a trap!)

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[1]: Problem with IP Address links

Martijn

Hmm. Maybe. I haven’t tested this, but if you look in functions.php on line 222 [1] you’ll find where the last part of a domain is found. Behind it you could add a check for port numbers, making the line:

% New line 222 of functions.php
                        (?:\.[\p{L}\p{M}\p{N}]+)+(?::\d+)?              # TLDs (also letters, diacritics & numbers only), optionally followed by port
%

Again, this is not tested. Regular expressions for finding URLs in running text are always a little spooky so I give no guarantees.

[1]: https://github.com/Kroc/NoNonsenseForum/blob/e8a996c6cd3eb97c9de8762e3aa31b3b29508f93/lib/functions.php#L222

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn