Make WordPress Core


Ignore:
Timestamp:
12/07/2014 03:18:06 AM (10 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r30752 r30766  
    36953695        ( preg_match( '#^(\w{1,20}):#', $m[3], $protocol ) && in_array( $protocol[1], wp_allowed_protocols() ) ?
    36963696            $m[3] :
    3697             path_join( $_links_add_base, $m[3] ) )
     3697            WP_HTTP::make_absolute_url( $m[3], $_links_add_base )
     3698        )
    36983699        . $m[2];
    36993700}
Note: See TracChangeset for help on using the changeset viewer.