Ticket #16560: 16560.diff
File 16560.diff, 1.1 KB (added by , 13 years ago) |
---|
-
wp-includes/class.wp-styles.php
135 135 } 136 136 137 137 function _css_href( $src, $ver, $handle ) { 138 if ( !is_bool($src) && !preg_match('|^ https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {138 if ( !is_bool($src) && !preg_match('|^(https?:)?//|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) { 139 139 $src = $this->base_url . $src; 140 140 } 141 141 -
wp-includes/class.wp-scripts.php
112 112 } 113 113 114 114 $this->print_extra_script( $handle ); 115 if ( !preg_match('|^ https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {115 if ( !preg_match('|^(https?:)?//|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) { 116 116 $src = $this->base_url . $src; 117 117 } 118 118