[wp-trac] [WordPress Trac] #52444: Add support for Telegram Messenger Protocol (was: Link to Telegram messenger issue)
WordPress Trac
noreply at wordpress.org
Thu Feb 4 17:39:49 UTC 2021
#52444: Add support for Telegram Messenger Protocol
--------------------------+------------------------------
Reporter: customer8765 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 5.6.1
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
--------------------------+------------------------------
Changes (by brookedot):
* keywords: => 2nd-opinion
Comment:
I looked into this for a few minutes, and it looks like the protocol is
being stripped by `wp_allowed_protocols` in:
https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/functions.php#L6383
The good news is that this is filterable with the `kses_allowed_protocols`
filter.
https://developer.wordpress.org/reference/hooks/kses_allowed_protocols/
ie:
{{{
add_filter( 'kses_allowed_protocols', function ( $protocols ) {
$protocols[] = 'tg';
return $protocols;
} );
}}}
Adding needs second opinion on if we should support the `tg` protocol when
not all apps are supported and the function is filterable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52444#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list