WordPress.org

Plugin Directory

Changeset 706924


Ignore:
Timestamp:
05/02/13 12:41:01 (12 months ago)
Author:
andy
Message:

Jetpack: fix missing function get_editable_roles on non-admin page loads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/stats.php

    r706011 r706924  
    216216 
    217217    if ( isset( $options['reg_users'] ) ) { 
     218        if ( ! function_exists( 'get_editable_roles' ) ) 
     219            require_once( ABSPATH . 'wp-admin/includes/user.php' ); 
    218220        if ( $options['reg_users'] ) 
    219221            $options['count_roles'] = array_keys( get_editable_roles() ); 
Note: See TracChangeset for help on using the changeset viewer.