WordPress.org

Make WordPress Core

Ticket #36033: 36033.patch

File 36033.patch, 574 bytes (added by SergeyBiryukov, 4 years ago)
  • src/wp-includes/functions.php

     
    48214821function wp_allowed_protocols() {
    48224822        static $protocols = array();
    48234823
    4824         if ( empty( $protocols ) ) {
     4824        if ( empty( $protocols ) || ! did_action( 'wp_loaded' ) ) {
    48254825                $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax', 'xmpp', 'webcal' );
    48264826
    48274827                /**