wp/wp-admin/network/upgrade.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    43 
    43 
    44 $action = isset( $_GET['action'] ) ? $_GET['action'] : 'show';
    44 $action = isset( $_GET['action'] ) ? $_GET['action'] : 'show';
    45 
    45 
    46 switch ( $action ) {
    46 switch ( $action ) {
    47 	case 'upgrade':
    47 	case 'upgrade':
    48 		$n = ( isset( $_GET['n'] ) ) ? intval( $_GET['n'] ) : 0;
    48 		$n = ( isset( $_GET['n'] ) ) ? (int) $_GET['n'] : 0;
    49 
    49 
    50 		if ( $n < 5 ) {
    50 		if ( $n < 5 ) {
    51 			/**
    51 			/**
    52 			 * @global int $wp_db_version WordPress database version.
    52 			 * @global int $wp_db_version WordPress database version.
    53 			 */
    53 			 */