Skip to:
Content

BuddyPress.org

Opened 3 weeks ago

Last modified 3 weeks ago

#8137 new enhancement

Allow overriding field autolinking from field type

Reported by: sbrajesh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Extended Profile Keywords: needs-patch good-first-bug
Cc: sbrajesh

Description

Hi,
Currently, The auto linking is not controllable from field type(unless you hack around it and meta).

Not all fields are auto linkable(example, oembed, role etc ).

There should be a simple way to allow developers either toggle support for auto linking in admin(type supports check?) or atleast disable the filtering on the front end.
We can add a new method or field on the field type class to check if we should auto link or not.

It is feasible to disable but there is no direct way. Can we make it simple?

Thank you
Brajesh

Change History (4)

#1 @sbrajesh
3 weeks ago

Or may be even adding a filter in the

get_do_autolink()

which passes the field id or object will suffice.

Thank you
Brajesh

#2 @boonebgorges
3 weeks ago

  • Component changed from Core to Extended Profile
  • Keywords needs-patch good-first-bug added

Yes, we can probably do both of these - a property on Field_Type objects as registered in plugins, and a filter. Can you suggest a patch?

#3 @sbrajesh
3 weeks ago

Thank you for the prompt reply. Sure, I will love to.

Since these two approaches are not mutually exclusive, I guess, we will need 2 different patches ?
Should I add the filter first and then the other one?

Thank you

Last edited 3 weeks ago by sbrajesh (previous) (diff)

#4 @boonebgorges
3 weeks ago

One or two patches, either way. Thank you!

Note: See TracTickets for help on using tickets.