mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
In the links_add_base()
callback, use a HTTP-aware URL joining function, rather than a filesystem joining function to avoid PHP warnings on certain systems.
Fixes #29950 Built from https://develop.svn.wordpress.org/trunk@30766 git-svn-id: http://core.svn.wordpress.org/trunk@30756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
26b85eb9b3
commit
e0ac8c0386
@ -3694,7 +3694,8 @@ function _links_add_base($m) {
|
|||||||
return $m[1] . '=' . $m[2] .
|
return $m[1] . '=' . $m[2] .
|
||||||
( preg_match( '#^(\w{1,20}):#', $m[3], $protocol ) && in_array( $protocol[1], wp_allowed_protocols() ) ?
|
( preg_match( '#^(\w{1,20}):#', $m[3], $protocol ) && in_array( $protocol[1], wp_allowed_protocols() ) ?
|
||||||
$m[3] :
|
$m[3] :
|
||||||
path_join( $_links_add_base, $m[3] ) )
|
WP_HTTP::make_absolute_url( $m[3], $_links_add_base )
|
||||||
|
)
|
||||||
. $m[2];
|
. $m[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-beta2-30765';
|
$wp_version = '4.1-beta2-30766';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user