Make WordPress Core

Changeset 8672


Ignore:
Timestamp:
08/19/2008 07:41:11 PM (17 years ago)
Author:
ryan
Message:

site_url filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r8600 r8672  
    790790function site_url($path = '', $scheme = null) {
    791791    // should the list of allowed schemes be maintained elsewhere?
     792    $orig_scheme = $scheme;
    792793    if ( !in_array($scheme, array('http', 'https')) ) {
    793794        if ( ('login_post' == $scheme) && ( force_ssl_login() || force_ssl_admin() ) )
     
    806807        $url .= '/' . ltrim($path, '/');
    807808
    808     return $url;
     809    return apply_filters('site_url', $url, $path, $orig_scheme);
    809810}
    810811
Note: See TracChangeset for help on using the changeset viewer.