From 2903685c9536036e3c2a1fe7d8257eec2e5696c5 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 17 Apr 2009 07:05:41 +0000 Subject: [PATCH] Add url filters. Props coffee2code. see #7709 git-svn-id: http://svn.automattic.com/wordpress/trunk@10983 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index bcf16c5626..aa0fa53dff 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1695,7 +1695,7 @@ function admin_url($path = '') { if ( !empty($path) && is_string($path) && strpos($path, '..') === false ) $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 ) $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 ) $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 ) $url .= '/' . ltrim($path, '/'); - return $url; + return apply_filters('plugins_url', $url, $path, $plugin); } ?>