[buddypress-trac] [BuddyPress Trac] #7300: xprofile date field year regression on existing fields

buddypress-trac noreply at wordpress.org
Tue Oct 25 21:16:14 UTC 2016

#7300: xprofile date field year regression on existing fields
 Reporter:  DJPaul            |       Owner:  djpaul
     Type:  defect (bug)      |      Status:  closed
 Priority:  high              |   Milestone:  2.7.1
Component:  Extended Profile  |     Version:
 Severity:  major             |  Resolution:  fixed
 Keywords:  commit            |

Comment (by djpaul):

 In [changeset:"11211"]:
 #!CommitTicketReference repository="" revision="11211"
 xprofile: fix regression being unable to select year in date field type.

 Pre-2.7 date fields do not have all of the new field meta properties set,
 and the requested metas were returned as an empty string, not a boolean
 false. The type strictness of the check changed in this commit caused the
 value(s) of the year field to be set to an empty array, instead of picking
 up the range of dates from the defaults.

 This was probably caused by some misleading PHPDoc for
 `bp_xprofile_get_meta`, which we're going to look into seperately.

 Fixes #7300 (for 2.7 branch)

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7300#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list