WordPress.org

Make WordPress Core

Ticket #39415: 39415.2.patch

File 39415.2.patch, 1.7 KB (added by kraftbj, 2 months ago)

Only add SMS and remove extra character added to line 1 in the original patch. Updates @since.

  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index f3f9c5ff0f..fff90a35bc 100644
    a b function send_frame_options_header() { 
    59835983 * @since 3.3.0
    59845984 * @since 4.3.0 Added 'webcal' to the protocols array.
    59855985 * @since 4.7.0 Added 'urn' to the protocols array.
     5986 * @since 5.3.0 Added 'sms' to the protocols array.
    59865987 *
    59875988 * @see wp_kses()
    59885989 * @see esc_url()
    function send_frame_options_header() { 
    59915992 *
    59925993 * @return string[] Array of allowed protocols. Defaults to an array containing 'http', 'https',
    59935994 *                  'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet',
    5994  *                  'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'. This covers
    5995  *                  all common link protocols, except for 'javascript' which should not be
    5996  *                  allowed for untrusted users.
     5995 *                  'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'.
     5996 *                  This covers all common link protocols, except for 'javascript' which should not
     5997 *                  be allowed for untrusted users.
    59975998 */
    59985999function wp_allowed_protocols() {
    59996000        static $protocols = array();
    60006001
    60016002        if ( empty( $protocols ) ) {
    6002                 $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal', 'urn' );
     6003                $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', 'urn' );
    60036004        }
    60046005
    60056006        if ( ! did_action( 'wp_loaded' ) ) {