Changeset 1442
- Timestamp:
- 08/25/08 15:34:01 (3 months ago)
- Files:
-
- trunk/wp-admin/wpmu-themes.php (modified) (4 diffs)
- trunk/wp-includes/wpmu-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/wpmu-themes.php
r1391 r1442 34 34 <tbody id="plugins"> 35 35 <?php 36 $total_theme_count = 0; 37 $activated_themes_count = 0; 38 foreach( (array) $themes as $key => $theme ) : 39 $total_theme_count++; 36 $total_theme_count = $activated_themes_count = 0; 37 foreach( (array) $themes as $key => $theme ) { 38 $total_theme_count++; 40 39 $theme_key = wp_specialchars($theme['Stylesheet']); 41 40 $class = ('alt' == $class) ? '' : 'alt'; … … 44 43 if( isset( $allowed_themes[ $theme_key ] ) == true ) { 45 44 $enabled = 'checked="checked" '; 46 $activated_themes_count++;45 $activated_themes_count++; 47 46 $class1 = ' active'; 48 47 } else { … … 60 59 <td><?php echo $theme['Description'] ?></td> 61 60 </tr> 62 <?php endforeach;?>61 <?php } ?> 63 62 </tbody> 64 63 </table> … … 67 66 <input type='submit' value='<?php _e('Update Themes »') ?>' /></p> 68 67 </form> 69 <p>Total Themes Installed: <?php echo $total_theme_count; ?><br /> 70 Themes Activated: <?php echo $activated_themes_count; ?></p> 68 69 <h3><?php _e('Total')?></h3> 70 <p> 71 <?php printf(__('Themes Installed: %d'), $total_theme_count); ?> 72 <br /> 73 <?php printf(__('Themes Activated: %d'), $activated_themes_count); ?> 74 </p> 71 75 </div> 72 76 trunk/wp-includes/wpmu-functions.php
r1433 r1442 1963 1963 delete_option( 'new_user_' . $key ); 1964 1964 do_action( "added_existing_user", $details[ 'user_id' ] ); 1965 wp_die( 'You have been added to this blog. Please visit the <a href="' . site_url() . '">homepage</a> or <a href="' . site_url( '/wp-admin/' ) . '">login</a> using your username and password.' );1965 wp_die( sprintf(__('You have been added to this blog. Please visit the <a href="%s">homepage</a> or <a href="%s">login</a> using your username and password.'), site_url(), site_url( '/wp-admin/' ) ); 1966 1966 } 1967 1967 }
