$num ) array_pop( $a ); return $a; } endif; if (!function_exists('is_super_admin')): /** * Implementation of the function "is_super_admin" if it doesn't not exists. * Needed for support of wordpress versions < 3.0. * * @param $user_id (optional) user id; defaults to current user * @return boolean true if the supplied user is super admin (site admin) * @see http://core.trac.wordpress.org/changeset/12645 */ function is_super_admin( $user_id = '' ) { $user_login = ''; if ( !empty( $user_id ) ) { $user_info = get_userdata($user_id); if ( empty( $user_info->user_login ) ) return false; $user_login = $user_info->user_login; } return is_site_admin($user_login); } endif; function AA_esc_html($value){ global $wpmu_version, $wp_version; if($wp_version > 2.8){ return esc_html($value); }else{ return wp_specialchars($value); } } ?>