WordPress.org

Make WordPress Core

Changeset 14094


Ignore:
Timestamp:
04/15/2010 09:24:52 PM (11 years ago)
Author:
ryan
Message:

Make sure is instantiated. see #12997

File:
1 edited

Legend:

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

    r14090 r14094  
    419419    $result = array();
    420420
    421     if ('time' == $strategy) {
     421    if ( 'time' == $strategy ) {
     422        global $wp_roles;
     423
     424        if ( ! isset( $wp_roles ) )
     425            $wp_roles = new WP_Roles();
     426
    422427        $avail_roles = $wp_roles->get_names();
    423428
Note: See TracChangeset for help on using the changeset viewer.