Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 10 years ago

#4646 closed enhancement (fixed)

Deleting profile fields - UX issue

Reported by: rogercoathup Owned by: slaFFik
Priority: normal Milestone: 2.8
Component: Administration Version: 1.5
Severity: normal Keywords:
Cc:

Description

In wp-admin (users.. profile fields).

If I delete a profile field from a profile field group, it always redirects me back to the base profile field group tab.

For a better UX experience, it should redirect you back to the field group you were working on.

Attachments (1)

4646.patch (825 bytes ) - added by slaFFik 10 years ago.

Download all attachments as: .zip

Change History (8)

#1 @DJPaul
14 years ago

  • Milestone Awaiting ReviewFuture Release
  • Version 1.71.5

#2 @DJPaul
14 years ago

  • Component CoreAdministration

#3 @mercime
10 years ago

  • Keywords needs-patch added

Confirming that this is still an issue as of BP 2.7 trunk. Needs fix for better UX and Accessibility.

@slaFFik
10 years ago

#4 @slaFFik
10 years ago

  • Keywords has-patch added; needs-patch removed
  • Milestone Future Release2.8

#5 @DJPaul
10 years ago

  • Keywords needs-patch added; has-patch removed

Eeep, scary old code! :) Rather than tack a new part on the end, let's improve the whole thing. While there isn't an output escaping issue as such, the way it has been done already is less than perfect.

We need to esc_url the entire value for the href attribute, and use either add_query_arg or sprintf to concatenate the hardcoded URL and the variables together. Think also about how to escape the values you're concatenating (strings would usually be passed through urlencode but it looks like these are integers, so you could do a simple cast to make that clear).

I think you'd do this above the HTML part of the function, because trying to do all that inline would make the line length really long.

#6 @slaFFik
10 years ago

  • Keywords needs-patch removed
  • Owner set to slaFFik
  • Status newassigned

#7 @slaffik
10 years ago

  • Resolutionfixed
  • Status assignedclosed

In 11345:

Profile: redirect to group after profile field deleted.

When deleting a profile field we should redirect back to a fields group, where the field was deleted from. That's a UX improvement.

Props rogercoathup, DJPaul.
Fixes #4646.

Note: See TracTickets for help on using tickets.