Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/06/2022 10:46:45 AM (3 years ago)
Author:
imath
Message:

Remove unnecessary 3rd argument when using has_action()

has_action() only accepts 2 arguments.

Props oztaser

Fixes #8635

File:
1 edited

Legend:

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

    r13140 r13296  
    1919 */
    2020function bp_rest_is_plugin_active() {
    21     return (bool) has_action( 'bp_rest_api_init', 'bp_rest', 5 );
     21    return (bool) has_action( 'bp_rest_api_init', 'bp_rest' );
    2222}
    2323
Note: See TracChangeset for help on using the changeset viewer.