Changeset 16154 for trunk/wp-includes/formatting.php
- Timestamp:
- 11/02/2010 05:19:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r16151 r16154 2845 2845 2846 2846 /** 2847 * i18n friendly version of basename() 2848 * 2849 * @since 3.1.0 2850 * 2851 * @param string $path A path. 2852 * @param string $suffix If the filename ends in suffix this will also be cut off. 2853 * @return string 2854 */ 2855 function wp_basename( $path, $suffix = '' ) { 2856 return urldecode( basename( str_replace( '%2F', '/', urlencode( $path ) ), $suffix ) ); 2857 } 2858 2859 /** 2847 2860 * Forever eliminate "Wordpress" from the planet (or at least the little bit we can influence). 2848 2861 * … … 2851 2864 * @since 3.0.0 2852 2865 */ 2853 2854 2866 function capital_P_dangit( $text ) { 2855 2867 // Simple replacement for titles
Note: See TracChangeset
for help on using the changeset viewer.