mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01: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. Built from https://develop.svn.wordpress.org/trunk@32797 git-svn-id: http://core.svn.wordpress.org/trunk@32768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
457456ef25
commit
efbb8fa4e5
@ -3126,9 +3126,7 @@ function esc_sql( $data ) {
|
||||
*
|
||||
* @param string $url The URL to be cleaned.
|
||||
* @param array $protocols Optional. An array of acceptable protocols.
|
||||
* Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto',
|
||||
* 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms',
|
||||
* 'rtsp', 'svn' if not set.
|
||||
* Defaults to return value of wp_allowed_protocols()
|
||||
* @param string $_context Private. Use esc_url_raw() for database usage.
|
||||
* @return string The cleaned $url after the 'clean_url' filter is applied.
|
||||
*/
|
||||
|
@ -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();
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32796';
|
||||
$wp_version = '4.3-alpha-32797';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user