Ticket #16560: external-protocol-regex.diff
File external-protocol-regex.diff, 1.1 KB (added by , 14 years ago) |
---|
-
wp-includes/class.wp-styles.php
102 102 } 103 103 104 104 function _css_href( $src, $ver, $handle ) { 105 if ( !is_bool($src) && !preg_match('|^ https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {105 if ( !is_bool($src) && !preg_match('|^(\w+:)?//|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) { 106 106 $src = $this->base_url . $src; 107 107 } 108 108 -
wp-includes/class.wp-scripts.php
114 114 } 115 115 116 116 $this->print_scripts_l10n( $handle ); 117 if ( !preg_match('|^ https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {117 if ( !preg_match('|^(\w+:)?//|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) { 118 118 $src = $this->base_url . $src; 119 119 } 120 120