skype links in WordPress Posts

Skype URIs können als normaler Link in HTML mit <a href=”skype:user?call”> oder <a href=”skype:user?add”> eingefügt werden.
Wordpress korrigiert diese Links in Beiträgen automatisch und lässt keine skype: URIs zu.

Möchte man solche URIs verwenden kann man dies im WordPress-Quelltext anpassen.
Die entsprechende Funktion ist in wp-includes/kses.php in der Zeile 360.

function wp_kses($string, $allowed_html, $allowed_protocols = array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet')) {

Hier lassen sich weitere Protokolle hinzufügen, etwa skype:, sip: oder Instant Messenger.

function wp_kses($string, $allowed_html, $allowed_protocols = array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'skype', 'sip')) {

Diese Änderung greift auch für die viele Widgets in der Sidebar.

site, tech | , ,

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>