WordPress.org

Make WordPress Core

Ticket #9779: 9779.diff

File 9779.diff, 1.1 KB (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/plugin.php

     
    499499} 
    500500 
    501501/** 
    502  * Gets the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in 
     502 * Gets the filesystem directory path (without trailing slash) for the plugin __FILE__ passed in 
    503503 * @package WordPress 
    504504 * @subpackage Plugin 
    505505 * @since 2.8 
     
    508508 * @return string the filesystem path of the directory that contains the plugin 
    509509 */ 
    510510function plugin_dir_path( $file ) { 
    511         return trailingslashit( dirname( $file ) ); 
     511        return dirname( $file ); 
    512512} 
    513513 
    514514/** 
    515  * Gets the URL directory path (with trailing slash) for the plugin __FILE__ passed in 
     515 * Gets the URL directory path (without trailing slash) for the plugin __FILE__ passed in 
    516516 * @package WordPress 
    517517 * @subpackage Plugin 
    518518 * @since 2.8 
     
    521521 * @return string the URL path of the directory that contains the plugin 
    522522 */ 
    523523function plugin_dir_url( $file ) { 
    524         return trailingslashit( plugins_url( '', $file ) ); 
     524        return plugins_url( '', $file ); 
    525525} 
    526526 
    527527/**