Make WordPress Core


Ignore:
Timestamp:
06/16/2015 07:44:39 PM (9 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r32791 r32797  
    31273127 * @param string $url       The URL to be cleaned.
    31283128 * @param array  $protocols Optional. An array of acceptable protocols.
    3129  *                          Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto',
    3130  *                          'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms',
    3131  *                          'rtsp', 'svn' if not set.
     3129 *                          Defaults to return value of wp_allowed_protocols()
    31323130 * @param string $_context  Private. Use esc_url_raw() for database usage.
    31333131 * @return string The cleaned $url after the 'clean_url' filter is applied.
Note: See TracChangeset for help on using the changeset viewer.