[wp-trac] [WordPress Trac] #2875: https enclosures fail on post.

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 29 10:35:52 GMT 2006


#2875: https enclosures fail on post.
-----------------------+----------------------------------------------------
 Reporter:  nigelkane  |       Owner:  anonymous
     Type:  defect     |      Status:  new      
 Priority:  high       |   Milestone:           
Component:  General    |     Version:  2.0.2    
 Severity:  major      |    Keywords:           
-----------------------+----------------------------------------------------
 I was noticeing a problem in that when you post on a standard HTML site,
 enclosures get added into postmeta on publishing a post. When running off
 an HTTPS site, this no longer happens.

 The reason is the regex only looks for HTTP. Line 1032 of wp-
 includes/functions.php

 {{{
   preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x",
 $content, $post_links_temp2);
 }}}

 Add the following under this line and it works.
 {{{
   preg_match_all("{\b https : [$any] +? (?= [$punc] * [^$any] | $)}x",
 $content, $post_links_temp2);
   foreach($post_links_temp2[0] as $link) {
     $post_links_temp[0][] = $link;
   }
 }}}
 There may be a nicer way to regex that up, but I couldn't add it.

 I have raised it as high/major because it is a bit of a hole that I cannot
 override the functionality of, and I use the RSS feed for podcasting -
 which WordPress does not support from an HTTPS site.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2875>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list