Changeset 12782
- Timestamp:
- 01/20/2010 11:01:09 PM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r12767 r12782 1219 1219 } 1220 1220 $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); 1221 if ( !$mu_media_buttons[ 'image' ]&& current_theme_supports( 'post-thumbnails' ) ) {1221 if ( empty($mu_media_buttons[ 'image' ]) && current_theme_supports( 'post-thumbnails' ) ) { 1222 1222 echo "<div id='update-nag'>" . sprintf( __( "Warning! The current theme supports post thumbnails. You must enable image uploads on <a href='%s'>the options page</a> for it to work." ), admin_url( 'ms-options.php' ) ) . "</div>"; 1223 1223 } -
trunk/wp-admin/ms-admin.php
r12781 r12782 22 22 $c_blogs = $wpdb->get_var("SELECT COUNT(blog_id) FROM {$wpdb->blogs}"); 23 23 24 $user_text = sprintf( _ _ngettext( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );25 $blog_text = sprintf( _ _ngettext( '%s blog', '%s blogs', $c_blogs ), number_format_i18n( $c_blogs ) );24 $user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) ); 25 $blog_text = sprintf( _n( '%s blog', '%s blogs', $c_blogs ), number_format_i18n( $c_blogs ) ); 26 26 27 27 $sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text ); -
trunk/wp-admin/ms-sites.php
r12781 r12782 15 15 wp_die( __('You do not have permission to access this page.') ); 16 16 17 $id = i ntval( $_GET['id'] );17 $id = isset($_GET['id']) ? intval( $_GET['id'] ) : 0; 18 18 $protocol = is_ssl() ? 'https://' : 'http://'; 19 19 20 if ( $_GET['updated'] == 'true' ) {20 if ( isset($_GET['updated']) && $_GET['updated'] == 'true' ) { 21 21 ?> 22 22 <div id="message" class="updated fade"><p> … … 71 71 } 72 72 73 switch ( $_GET['action'] ) { 73 $action = isset($_GET['action']) ? $_GET['action'] : 'list'; 74 75 switch ( $action ) { 74 76 // Edit blog 75 77 case "editblog": … … 310 312 311 313 // List blogs 314 case 'list': 312 315 default: 313 316 $apage = ( isset($_GET['apage'] ) && intval( $_GET['apage'] ) ) ? absint( $_GET['apage'] ) : 1;
Note: See TracChangeset
for help on using the changeset viewer.