WordPress.org

Make WordPress Core

Ticket #36831: 36831.patch

File 36831.patch, 588 bytes (added by sebastian.pisula, 4 years ago)
  • wp-includes/plugin.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    741741 * @return string the filesystem path of the directory that contains the plugin.
    742742 */
    743743function plugin_dir_path( $file ) {
    744         return trailingslashit( dirname( $file ) );
     744        return wp_normalize_path( trailingslashit( dirname( $file ) ) );
    745745}
    746746
    747747/**