Skip to:
Content

BuddyPress.org

Changeset 8831


Ignore:
Timestamp:
08/13/2014 08:18:22 PM (5 years ago)
Author:
r-a-y
Message:

Rename bp_core_get_components() to bp_core_get_packaged_component_ids().

Ambiguous function names suck.

Props johnjamesjacoby.

See r8830.

Location:
trunk/src/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r8830 r8831  
    339339
    340340/**
    341  * Returns an array of core components.
     341 * Returns an array of core component IDs.
    342342 *
    343343 * @since BuddyPress (2.1.0)
     
    345345 * @return array
    346346 */
    347 function bp_core_get_components() {
     347function bp_core_get_packaged_component_ids() {
    348348    return array(
    349349        'activity',
  • trunk/src/bp-core/bp-core-template.php

    r8830 r8831  
    15401540    $retval = false;
    15411541
    1542     foreach ( bp_core_get_components() as $active_component ) {
     1542    foreach ( bp_core_get_packaged_component_ids() as $active_component ) {
    15431543        if ( bp_is_current_component( $active_component ) ) {
    15441544            $retval = true;
Note: See TracChangeset for help on using the changeset viewer.