Changeset 11911 for trunk/wp-includes/compat.php
- Timestamp:
- 09/10/2009 10:07:33 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/compat.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/compat.php
r11875 r11911 142 142 } 143 143 } 144 145 // pathinfo that fills 'filename' without extension like in PHP 5.2+ 146 function pathinfo52($path) { 147 $parts = pathinfo($path); 148 if ( !isset($parts['filename']) ) { 149 $parts['filename'] = substr( $parts['basename'], 0, strrpos($parts['basename'], '.') ); 150 if ( empty($parts['filename']) ) // there's no extension 151 $parts['filename'] = $parts['basename']; 152 } 153 return $parts; 154 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)