Allow HTTPS URL enclosures.
Props markjaquith with a patch that predates all WordCamps. Fixes #2875. git-svn-id: http://core.svn.wordpress.org/trunk@24810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dffea4e020
commit
ec6f40342a
|
@ -422,7 +422,7 @@ function do_enclose( $content, $post_ID ) {
|
||||||
$punc = '.:?\-';
|
$punc = '.:?\-';
|
||||||
$any = $ltrs . $gunk . $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 ) {
|
foreach ( $pung as $link_test ) {
|
||||||
if ( !in_array( $link_test, $post_links_temp[0] ) ) { // link no longer in post
|
if ( !in_array( $link_test, $post_links_temp[0] ) ) { // link no longer in post
|
||||||
|
|
Loading…
Reference in New Issue