Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/30/2015 08:21:26 PM (6 years ago)
Author:
imath
Message:

Avatar UI : make sure the current site is using at least WordPress 3.9

To maximize browsers compatibility, the Avatar UI requires Pluload 2.1.1. This version of the script was introduced in version 3.9 of WordPress.
For WordPress versions 3.6 to 3.8, the legacy UI will be used.

Fixes #6290

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-avatars.php

    r9826 r9827  
    18021802    $retval = false;
    18031803
     1804    // No need to carry on if the current WordPress version is not supported.
     1805    if ( ! bp_attachments_is_wp_version_supported() ) {
     1806        return $retval;
     1807    }
     1808
    18041809    if ( bp_is_user_change_avatar() && 'crop-image' !== bp_get_avatar_admin_step() ) {
    18051810        $retval = ! bp_core_get_root_option( 'bp-disable-avatar-uploads' );
Note: See TracChangeset for help on using the changeset viewer.