WordPress.org

Make WordPress Core

Ticket #19805: pingback_https_fix.patch

File pingback_https_fix.patch, 666 bytes (added by norocketsurgeon, 2 years ago)

patch for https ping issue

  • wp-includes/comment.php

     
    17961796        // Parsing the post, external links (if any) are stored in the $post_links array 
    17971797        // This regexp comes straight from phpfreaks.com 
    17981798        // http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php 
    1799         preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp); 
     1799        preg_match_all("{\b https? : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp); 
    18001800 
    18011801        // Step 2. 
    18021802        // Walking thru the links array