WordPress.org

Make WordPress Core

Changeset 21105


Ignore:
Timestamp:
06/25/12 19:40:16 (2 years ago)
Author:
nacin
Message:

Fix string offset PHP 5.4 error by normalizing $user_count to always be an integer. props ericmann. see #20966 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/update.php

    r21089 r21105  
    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.