Make WordPress Core

Changeset 12782


Ignore:
Timestamp:
01/20/2010 11:01:09 PM (14 years ago)
Author:
ryan
Message:

Clear some warnings. see #11644

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r12767 r12782  
    12191219    }
    12201220    $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' ) ) {
    12221222        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>";
    12231223    }
  • trunk/wp-admin/ms-admin.php

    r12781 r12782  
    2222$c_blogs = $wpdb->get_var("SELECT COUNT(blog_id) FROM {$wpdb->blogs}");
    2323
    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 ) );
    2626
    2727$sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );
  • trunk/wp-admin/ms-sites.php

    r12781 r12782  
    1515    wp_die( __('You do not have permission to access this page.') );
    1616
    17 $id = intval( $_GET['id'] );
     17$id = isset($_GET['id']) ? intval( $_GET['id'] ) : 0;
    1818$protocol = is_ssl() ? 'https://' : 'http://';
    1919
    20 if ( $_GET['updated'] == 'true' ) {
     20if ( isset($_GET['updated']) && $_GET['updated'] == 'true' ) {
    2121    ?>
    2222    <div id="message" class="updated fade"><p>
     
    7171}
    7272
    73 switch ( $_GET['action'] ) {
     73$action = isset($_GET['action']) ? $_GET['action'] : 'list';
     74
     75switch ( $action ) {
    7476    // Edit blog
    7577    case "editblog":
     
    310312
    311313    // List blogs
     314    case 'list':
    312315    default:
    313316        $apage = ( isset($_GET['apage'] ) && intval( $_GET['apage'] ) ) ? absint( $_GET['apage'] ) : 1;
Note: See TracChangeset for help on using the changeset viewer.