Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/06/2023 09:26:21 AM (18 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-core/admin/bp-core-admin-functions.php

    r13468 r13469  
    210210 *
    211211 * @global wpdb $wpdb WordPress database object.
    212  * @global WP_Rewrite $wp_rewrite WordPress object implementing a rewrite component API.
    213212 *
    214213 * @since 1.2.0
    215214 */
    216215function bp_core_activation_notice() {
    217     global $wp_rewrite, $wpdb;
     216    global $wpdb;
    218217
    219218    // Only the super admin gets warnings.
Note: See TracChangeset for help on using the changeset viewer.