Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/25/2013 02:28:28 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Fix some PHP 5.4 static method E_STRICT warnings across several components. More to do here. See #5108.

File:
1 edited

Legend:

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

    r7302 r7308  
    197197    /** Static Methods ********************************************************/
    198198
    199     function group_exists( $slug, $table_name = false ) {
     199    public static function group_exists( $slug, $table_name = false ) {
    200200        global $wpdb, $bp;
    201201
     
    209209    }
    210210
    211     function get_id_from_slug( $slug ) {
     211    public static function get_id_from_slug( $slug ) {
    212212        return BP_Groups_Group::group_exists( $slug );
    213213    }
     
    14871487    }
    14881488
    1489     function total_group_count( $user_id = 0 ) {
     1489    public static function total_group_count( $user_id = 0 ) {
    14901490        global $bp, $wpdb;
    14911491
     
    15001500    }
    15011501
    1502     function get_invites( $user_id, $limit = false, $page = false, $exclude = false ) {
     1502    public static function get_invites( $user_id, $limit = false, $page = false, $exclude = false ) {
    15031503        global $wpdb, $bp;
    15041504
     
    15511551    }
    15521552
    1553     function check_is_admin( $user_id, $group_id ) {
     1553    public static function check_is_admin( $user_id, $group_id ) {
    15541554        global $wpdb, $bp;
    15551555
     
    15601560    }
    15611561
    1562     function check_is_mod( $user_id, $group_id ) {
     1562    public static function check_is_mod( $user_id, $group_id ) {
    15631563        global $wpdb, $bp;
    15641564
     
    15691569    }
    15701570
    1571     function check_is_member( $user_id, $group_id ) {
     1571    public static function check_is_member( $user_id, $group_id ) {
    15721572        global $wpdb, $bp;
    15731573
Note: See TracChangeset for help on using the changeset viewer.