[buddypress-trac] [BuddyPress Trac] #8623: Profile Fields "Custom" Sort Order not working since 10.0

buddypress-trac noreply at wordpress.org
Sat Feb 5 08:50:25 UTC 2022


#8623: Profile Fields "Custom" Sort Order not working since 10.0
------------------------------+---------------------
 Reporter:  niftythree        |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  10.1.0
Component:  Core              |     Version:  10.0.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by imath):

 In [changeset:"13230" 13230]:
 {{{
 #!CommitTicketReference repository="" revision="13230"
 Bring back `custom` order to xProfile field options sorting

 r13147 introduced a regression about this type of xProfile field options
 order. To make sure we preserve it, we need to check `$this->order_by`
 value before sanitizing it otherwise the potential `custom` value is
 sanitized to `ASC` and the SQL sort part is never set to use the
 `option_order` db field.

 Props oztaser, espellcaste, niftythree

 See #8623 (branch 10.0)
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8623#comment:12>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list