WordPress.org

Make WordPress Core

Changeset 10983


Ignore:
Timestamp:
04/17/2009 07:05:41 AM (9 years ago)
Author:
ryan
Message:

Add url filters. Props coffee2code. see #7709

File:
1 edited

Legend:

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

    r10936 r10983  
    16961696        $url .= ltrim($path, '/');
    16971697
    1698     return $url;
     1698    return apply_filters('admin_url', $url, $path);
    16991699}
    17001700
     
    17141714        $url .= ltrim($path, '/');
    17151715
    1716     return $url;
     1716    return apply_filters('includes_url', $url, $path);
    17171717}
    17181718
     
    17371737        $url .= '/' . ltrim($path, '/');
    17381738
    1739     return $url;
     1739    return apply_filters('content_url', $url, $path);
    17401740}
    17411741
     
    17691769        $url .= '/' . ltrim($path, '/');
    17701770
    1771     return $url;
     1771    return apply_filters('plugins_url', $url, $path, $plugin);
    17721772}
    17731773
Note: See TracChangeset for help on using the changeset viewer.