Make WordPress Core


Ignore:
Timestamp:
05/03/2010 08:26:11 PM (16 years ago)
Author:
ryan
Message:

Strip trailing whites.

File:
1 edited

Legend:

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

    r14374 r14404  
    330330            if ( ! current_user_can( 'manage_sites' ) )
    331331                wp_die( __( 'You do not have permission to access this page.' ) );
    332    
     332
    333333            if ( $_GET['action'] != -1 || $_POST['action2'] != -1 )
    334334                $doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
     
    455455            header( 'Content-Type: text/html; charset=utf-8' );
    456456        }
    457         if ( $current_site->blog_id == $id )   
     457        if ( $current_site->blog_id == $id )
    458458            wp_die( __( 'You are not allowed to change the current site.' ) );
    459459        ?>
     
    490490        if ( $id != '0' && $id != '1' ) {
    491491            $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays
    492             $title = __( 'Users' ); 
    493             $parent_file = 'ms-admin.php'; 
     492            $title = __( 'Users' );
     493            $parent_file = 'ms-admin.php';
    494494            require_once( 'admin-header.php' );
    495495            echo '<div class="wrap">';
     
    499499            exit();
    500500        } else {
    501             wp_redirect( admin_url( 'ms-users.php' ) ); 
     501            wp_redirect( admin_url( 'ms-users.php' ) );
    502502        }
    503503    break;
     
    517517                    switch ( $doaction ) {
    518518                        case 'delete':
    519                             $title = __( 'Users' ); 
    520                             $parent_file = 'ms-admin.php'; 
     519                            $title = __( 'Users' );
     520                            $parent_file = 'ms-admin.php';
    521521                            require_once( 'admin-header.php' );
    522522                            echo '<div class="wrap">';
     
    544544                            $userfunction = 'all_notspam';
    545545                            $blogs = get_blogs_of_user( $val, true );
    546                             foreach ( (array) $blogs as $key => $details ) 
     546                            foreach ( (array) $blogs as $key => $details )
    547547                                update_blog_status( $details->userblog_id, 'spam', '0' );
    548548
    549549                            update_user_status( $val, 'spam', '0', 1 );
    550550                        break;
    551                     }       
    552                 }           
     551                    }
     552                }
    553553            }
    554554
     
    579579            foreach( $_POST['user'] as $id ) {
    580580                wpmu_delete_user( $id );
    581                 $i++;   
     581                $i++;
    582582            }
    583583
Note: See TracChangeset for help on using the changeset viewer.