Changeset 11013 for trunk/wp-includes/theme.php
- Timestamp:
- 04/20/2009 06:18:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r10835 r11013 187 187 if ( preg_match( '|Theme URI:(.*)$|mi', $theme_data, $theme_uri ) ) 188 188 $theme_uri = clean_url( trim( $theme_uri[1] ) ); 189 else 189 else 190 190 $theme_uri = ''; 191 191 192 192 if ( preg_match( '|Description:(.*)$|mi', $theme_data, $description ) ) 193 193 $description = wptexturize( wp_kses( trim( $description[1] ), $themes_allowed_tags ) ); 194 else 194 else 195 195 $description = ''; 196 196 … … 375 375 @ $stylesheet_dir->close(); 376 376 } 377 377 378 378 $template_dir = @ dir("$theme_root/$template"); 379 379 if ( $template_dir ) { … … 394 394 } 395 395 } 396 @ $template_dir->close(); 396 @ $template_dir->close(); 397 397 } 398 398 … … 1151 1151 $theme_dir = str_replace('\\','/', get_theme_root()); // sanitize for Win32 installs 1152 1152 $theme_dir = preg_replace('|/+|','/', $theme_dir); // remove any duplicate slash 1153 $file = preg_replace('|^.*/themes/.*?/|','',$file); // get relative path from theme dir 1153 $file = preg_replace('|^.*/themes/.*?/|','',$file); // get relative path from theme dir 1154 1154 return $file; 1155 1155 }
Note: See TracChangeset
for help on using the changeset viewer.