Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/04/2024 02:30:49 AM (20 months ago)
Author:
espellcaste
Message:

WPCS: Part X: miscellaneous fixes for some of the files of the core component.

Follow-up to [13901]

See #9164 and #7228

File:
1 edited

Legend:

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

    r12728 r13903  
    154154    $taxonomy_site_map = array();
    155155    foreach ( (array) $taxonomies as $taxonomy ) {
    156         $taxonomy_site_id = bp_get_taxonomy_term_site_id( $taxonomy );
     156        $taxonomy_site_id                         = bp_get_taxonomy_term_site_id( $taxonomy );
    157157        $taxonomy_site_map[ $taxonomy_site_id ][] = $taxonomy;
    158158    }
     
    242242    $taxonomy_site_map = array();
    243243    foreach ( (array) $taxonomies as $taxonomy ) {
    244         $taxonomy_site_id = bp_get_taxonomy_term_site_id( $taxonomy );
     244        $taxonomy_site_id                         = bp_get_taxonomy_term_site_id( $taxonomy );
    245245        $taxonomy_site_map[ $taxonomy_site_id ][] = $taxonomy;
    246246    }
     
    276276 * @see get_term_by() for a full description of function and parameters.
    277277 *
    278  * @param string     $field    Either 'slug', 'name', 'id' (term_id), or 'term_taxonomy_id'
    279  * @param string|int $value    Search for this term value
     278 * @param string     $field    Either 'slug', 'name', 'id' (term_id), or 'term_taxonomy_id'.
     279 * @param string|int $value    Search for this term value.
    280280 * @param string     $taxonomy Taxonomy name. Optional, if `$field` is 'term_taxonomy_id'.
    281  * @param string     $output   Constant OBJECT, ARRAY_A, or ARRAY_N
     281 * @param string     $output   Constant OBJECT, ARRAY_A, or ARRAY_N.
    282282 * @param string     $filter   Optional, default is raw or no WordPress defined filter will applied.
    283283 *
     
    386386 * @since 7.0.0
    387387 *
    388  * @param array  $args {
    389  *     Array of arguments to query BP Terms.
     388 * @param array $args {
     389 *    Array of arguments to query BP Terms.
    390390 *     @see `get_terms()` for full description of arguments in case of a member type.
    391391 * }
     
    442442 * @since 7.0.0
    443443 *
    444  * @param int     $term_id  The BP Term ID. Required.
    445  * @param string  $taxonomy The BP Taxonomy Name. Required.
     444 * @param int    $term_id  The BP Term ID. Required.
     445 * @param string $taxonomy The BP Taxonomy Name. Required.
    446446 * @return bool|WP_Error True on success, WP_Error on failure.
    447447 */
Note: See TracChangeset for help on using the changeset viewer.