Skip to:
Content

BuddyPress.org

Changeset 12878


Ignore:
Timestamp:
04/06/2021 08:01:02 PM (7 months ago)
Author:
imath
Message:

xProfile: remove the autolink feature support from the URL field type

Autolinking this field value to a members search is not suitable for this type of field as its goal is to direct the user to the link's location. To avoid admin users confusion, let's remove the Autolink metabox and this feature from the URL field type.

Props topher1kenobe

Fixes #8450

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php

    r11645 r12878  
    1717 */
    1818class BP_XProfile_Field_Type_URL extends BP_XProfile_Field_Type {
     19
     20    /**
     21     * Supported features for the URL field type.
     22     *
     23     * @since 8.0.0
     24     * @var bool[] The URL field type supported features.
     25     */
     26    public static $supported_features = array(
     27        'do_autolink' => false,
     28    );
    1929
    2030    /**
Note: See TracChangeset for help on using the changeset viewer.