WordPress.org

Make WordPress Core

Changeset 21121


Ignore:
Timestamp:
06/26/12 03:08:30 (22 months ago)
Author:
nacin
Message:

Fix string offset PHP 5.4 error by normalizing to always be an integer. props ericmann. fixes #20966 for 3.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-includes/update.php

    r20286 r21121  
    5959    } else { 
    6060        $user_count = count_users( ); 
     61        $user_count = $user_count['total_users']; 
    6162        $multisite_enabled = 0; 
    6263        $num_blogs = 1; 
     
    7172        'local_package'     => isset( $wp_local_package ) ? $wp_local_package : '', 
    7273        'blogs'             => $num_blogs, 
    73         'users'             => $user_count['total_users'], 
     74        'users'             => $user_count, 
    7475        'multisite_enabled' => $multisite_enabled 
    7576    ); 
Note: See TracChangeset for help on using the changeset viewer.