mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Document the default list of allowed protocols in the doc block for wp_allowed_protocols() and cross-reference in esc_url() and the kses_allowed_protocols filter.
Props GunGeekATX. Fixes #32421. git-svn-id: https://develop.svn.wordpress.org/trunk@32797 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4506,6 +4506,7 @@ function send_frame_options_header() {
|
||||
* @staticvar array $protocols
|
||||
*
|
||||
* @return array Array of allowed protocols.
|
||||
* Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal'
|
||||
*/
|
||||
function wp_allowed_protocols() {
|
||||
static $protocols = array();
|
||||
|
||||
Reference in New Issue
Block a user