From fc20fc9ebb9bce0cc87792e447e696b1adf92f76 Mon Sep 17 00:00:00 2001 From: "Michael Adams (mdawaffe)" Date: Sun, 28 Jul 2013 19:07:43 +0000 Subject: [PATCH] Allow HTTPS URL enclosures. Props markjaquith with a patch that predates all WordCamps. Fixes #2875. git-svn-id: https://develop.svn.wordpress.org/trunk@24810 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 20b7981d65..6d37ede25d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -422,7 +422,7 @@ function do_enclose( $content, $post_ID ) { $punc = '.:?\-'; $any = $ltrs . $gunk . $punc; - preg_match_all( "{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp ); + preg_match_all( "{\b https? : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp ); foreach ( $pung as $link_test ) { if ( !in_array( $link_test, $post_links_temp[0] ) ) { // link no longer in post