Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/03/2011 01:25:04 PM (13 years ago)
Author:
boonebgorges
Message:

Re-adds bp_xprofile_field_get_children filter from 1.2 branch. Fixes #3642. Props sushkov

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r5178 r5207  
    512512        global $wpdb, $bp;
    513513
    514         /* This is done here so we don't have problems with sql injection */
     514        // This is done here so we don't have problems with sql injection
    515515        if ( 'asc' == $this->order_by && !$for_editing )
    516516            $sort_sql = 'ORDER BY name ASC';
     
    520520            $sort_sql = 'ORDER BY option_order ASC';
    521521
    522         /* This eliminates a problem with getting all fields when there is no id for the object */
     522        // This eliminates a problem with getting all fields when there is no id for the object
    523523        if ( !$this->id )
    524524            $parent_id = -1;
     
    531531            return false;
    532532
    533         return $children;
     533        return apply_filters( 'bp_xprofile_field_get_children', $children );
    534534    }
    535535
Note: See TracChangeset for help on using the changeset viewer.