Changeset 5700 for trunk/wp-includes/theme.php
- Timestamp:
- 06/14/2007 02:25:30 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r5630 r5700 71 71 'strong' => array() 72 72 ); 73 73 74 74 $theme_data = implode( '', file( $theme_file ) ); 75 75 $theme_data = str_replace ( '\r', '\n', $theme_data ); … … 80 80 preg_match( '|Author URI:(.*)$|mi', $theme_data, $author_uri ); 81 81 preg_match( '|Template:(.*)$|mi', $theme_data, $template ); 82 82 83 83 if ( preg_match( '|Version:(.*)|i', $theme_data, $version ) ) 84 84 $version = wp_kses( trim( $version[1] ), $themes_allowed_tags ); 85 85 else 86 86 $version = ''; 87 87 88 88 if ( preg_match('|Status:(.*)|i', $theme_data, $status) ) 89 89 $status = wp_kses( trim( $status[1] ), $themes_allowed_tags ); 90 90 else 91 91 $status = 'publish'; 92 92 93 93 $name = $theme = wp_kses( trim( $theme_name[1] ), $themes_allowed_tags ); 94 94 $theme_uri = clean_url( trim( $theme_uri[1] ) ); 95 95 $description = wptexturize( wp_kses( trim( $description[1] ), $themes_allowed_tags ) ); 96 96 $template = wp_kses( trim( $template[1] ), $themes_allowed_tags ); 97 97 98 98 $author_uri = clean_url( trim( $author_uri[1] ) ); 99 99 100 100 if ( empty( $author_uri[1] ) ) { 101 101 $author = wp_kses( trim( $author_name[1] ), $themes_allowed_tags );
Note: See TracChangeset
for help on using the changeset viewer.