Make WordPress Core

Ticket #28499: 28499.1.diff

File 28499.1.diff, 1.4 KB (added by ericlewis, 11 years ago)
  • src/wp-includes/link-template.php

    diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php
    index 739d6bb..e190e21 100644
    a b function content_url($path = '') { 
    26262626}
    26272627
    26282628/**
    2629  * Retrieve the url to the plugins directory or to a specific file within that directory.
    2630  * You can hardcode the plugin slug in $path or pass __FILE__ as a second argument to get the correct folder name.
     2629 * Retrieve a url within the plugins or mu-plugins directory.
     2630 *
     2631 * Defaults to the plugins directory if no arguments are supplied.
    26312632 *
    26322633 * @since 2.6.0
    26332634 *
    2634  * @param string $path Optional. Path relative to the plugins url.
    2635  * @param string $plugin Optional. The plugin file that you want to be relative to - i.e. pass in __FILE__
    2636  * @return string Plugins url link with optional path appended.
     2635 * @param  string $path   Optional. Extra path appended to the end of the URL, including
     2636 *                        the relative directory if $plugin is supplied.
     2637 * @param  string $plugin Optional. A full filepath to a file inside a plugin or
     2638 *                        mu-plugin. The URL will be relative to its directory.
     2639 *                        Typically this is done by passing `__FILE__` as the argument.
     2640 * @return string         Plugins url link with optional paths appended.
    26372641*/
    26382642function plugins_url($path = '', $plugin = '') {
    26392643