[buddypress-trac] [BuddyPress Trac] #5472: xprofile_insert_field -> type - 'option' not allowed?
buddypress-trac
noreply at wordpress.org
Sun Jun 15 17:51:22 UTC 2014
#5472: xprofile_insert_field -> type - 'option' not allowed?
------------------------------+---------------------------
Reporter: shanebp | Owner: boonebgorges
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.1
Component: XProfile | Version: 1.9.2
Severity: normal | Resolution:
Keywords: needs-unit-tests |
------------------------------+---------------------------
Comment (by boonebgorges):
> A gut feeling says this issue is connected to having to use
'field_order' rather than 'option_order' when using a loop to add options
to a Parent.
Yes. https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-xprofile
/bp-xprofile-classes.php#L729 Children are fetched by `option_order`.
`field_order` has nothing to do with it.
> if ( $this->type_obj->supports_options ) {
I guess you're referring to `BP_XProfile_Field::save()`? I'm not sure how
that would affect this particular issue.
I tested your script using `option_order` instead of `field_order` when
inserting country names, and it appears to work fine. Have you tested
this?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5472#comment:15>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list