Make WordPress Core

Ticket #27801: 27801.diff

File 27801.diff, 661 bytes (added by voldemortensen, 12 years ago)
  • src/wp-includes/formatting.php

     
    38483848}
    38493849
    38503850/**
     3851 * i18n friendly version of dirname()
     3852 *
     3853 * @since 4.2
     3854 *
     3855 * @param string $path filepath.
     3856 * @return string
     3857 */
     3858function wp_dirname( $path ) {
     3859        return urldecode( dirname( str_replace( array( '%2F', '%5C' ), '/', urlencode( $path ) ) ) );
     3860}
     3861
     3862/**
    38513863 * Forever eliminate "Wordpress" from the planet (or at least the little bit we can influence).
    38523864 *
    38533865 * Violating our coding standards for a good function name.