Add url filters. Props coffee2code. see #7709
git-svn-id: https://develop.svn.wordpress.org/trunk@10983 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1c97a58522
commit
ed74bba997
|
@ -1695,7 +1695,7 @@ function admin_url($path = '') {
|
||||||
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
|
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
|
||||||
$url .= ltrim($path, '/');
|
$url .= ltrim($path, '/');
|
||||||
|
|
||||||
return $url;
|
return apply_filters('admin_url', $url, $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1713,7 +1713,7 @@ function includes_url($path = '') {
|
||||||
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
|
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
|
||||||
$url .= ltrim($path, '/');
|
$url .= ltrim($path, '/');
|
||||||
|
|
||||||
return $url;
|
return apply_filters('includes_url', $url, $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1736,7 +1736,7 @@ function content_url($path = '') {
|
||||||
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
|
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
|
||||||
$url .= '/' . ltrim($path, '/');
|
$url .= '/' . ltrim($path, '/');
|
||||||
|
|
||||||
return $url;
|
return apply_filters('content_url', $url, $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1768,7 +1768,7 @@ function plugins_url($path = '', $plugin = '') {
|
||||||
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
|
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
|
||||||
$url .= '/' . ltrim($path, '/');
|
$url .= '/' . ltrim($path, '/');
|
||||||
|
|
||||||
return $url;
|
return apply_filters('plugins_url', $url, $path, $plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue