Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/06/2023 09:26:21 AM (14 months ago)
Author:
imath
Message:

Remove global vars declarations when corresponding vars are not used

Props upadalavipul

Closes https://github.com/buddypress/buddypress/pull/96
Fixes #8882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-group.php

    r13414 r13469  
    756756     * @since 2.9.0
    757757     *
    758      * @param string      $slug       Slug to check.
    759      *
    760      * @return int|null|false Group ID if found; null if not; false if missing parameters.
     758     * @param  string         $slug Slug to check.
     759     * @return int|null|false       Group ID if found; null if not; false if missing parameters.
    761760     */
    762761    public static function get_id_by_previous_slug( $slug ) {
    763         global $wpdb;
    764 
    765762        if ( empty( $slug ) ) {
    766763            return false;
Note: See TracChangeset for help on using the changeset viewer.