Forums

non HTTP links in sidebar, how? (8 posts)

  1. cybot
    Member
    Posted 6 years ago #

    Hi,

    i would like to add some links of teamspeak:// and steam:// - but this links all always changed to http://teamspeak// and http://steam//

    is this a bug, feature or an option i can change?

    how to reproduce:

    - wordpress/wp-admin/link-manager.php
    - add some steam:// or teamspeak:// link
    - view the wordpress/ output

    using WordPress 2.0.6

  2. cybot
    Member
    Posted 6 years ago #

    at least, can i have a comment if this is an intended behavior or not?

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    cybot: This is a known issue. The Link Manager doesn't much care for links in unknown protocols.

  4. vkaryl
    Member
    Posted 6 years ago #

    You could always simply hard-code these into the sidebar instead of using the Link Manager.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    I'm going to fix the bloody link manager one of these days. It would be nice if it didn't stupidly try to second guess the user's input there.

  6. vkaryl
    Member
    Posted 6 years ago #

    Yes, would be nice sometimes! So far, Otto, you seem to be the only one who sees the problem or cares....

  7. cybot
    Member
    Posted 6 years ago #

    thanks for the reply - so i will just comment out this url rewriting in the code

    i don't think that it is necessary to rewrite links added by an admin or editor ...

  8. cybot
    Member
    Posted 6 years ago #

    ok, i have fixed this in my local code by just commenting out some line of codes:

    in wp-includes/functions-formatting.php

    lines #1056-1059

    in wp-admin/admin-functions.php

    line #505

    also, this lines do not use the same filter for protocols - possible there should be used a configurable option where you can insert allowed protocols or all

    at least they are missing some important protocols: http://en.wikipedia.org/wiki/URI_scheme

Topic Closed

This topic has been closed to new replies.

About this Topic