Make WordPress Core

Changeset 32797


Ignore:
Timestamp:
06/16/2015 07:44:39 PM (10 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.

Location:
trunk/src/wp-includes
Files:
2 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.
  • trunk/src/wp-includes/functions.php

    r32775 r32797  
    45074507 *
    45084508 * @return array Array of allowed protocols.
     4509 *               Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal'
    45094510 */
    45104511function wp_allowed_protocols() {
Note: See TracChangeset for help on using the changeset viewer.