Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/02/2018 10:40:59 PM (4 years ago)
Author:
djpaul
Message:

Move (retired) Legacy Forum backwards compatibility functions into deprecated/3.0 file.

See #5351

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r11896 r11938  
    470470 * Is the group accessible to the currently logged-in user?
    471471 * Despite the name of the function, it has historically checked
    472  * whether a user has access to a group. 
    473  * In BP 2.9, a property was added to the BP_Groups_Group class, 
     472 * whether a user has access to a group.
     473 * In BP 2.9, a property was added to the BP_Groups_Group class,
    474474 * `is_visible`, that describes whether a user can know the group exists.
    475  * If you wish to check that property, use the check: 
     475 * If you wish to check that property, use the check:
    476476 * bp_current_user_can( 'groups_see_group' ).
    477477 *
     
    32203220    return true;
    32213221}
    3222 
    3223 /**
    3224  * Output a 'New Topic' button for a group.
    3225  *
    3226  * @since 1.2.7
    3227  * @deprecated 3.0.0 No longer used in core, but supported for third-party code.
    3228  *
    3229  * @param BP_Groups_Group|bool $group The BP Groups_Group object if passed, boolean false if not passed.
    3230  */
    3231 function bp_group_new_topic_button( $group = false ) {
    3232 }
    3233 
    3234     /**
    3235      * Return a 'New Topic' button for a group.
    3236      *
    3237      * @since 1.2.7
    3238      * @deprecated 3.0.0 No longer used in core, but supported for third-party code.
    3239      *
    3240      * @param BP_Groups_Group|bool $group The BP Groups_Group object if passed, boolean false if not passed.
    3241      *
    3242      * @return false
    3243      */
    3244     function bp_get_group_new_topic_button( $group = false ) {
    3245         return false;
    3246     }
    32473222
    32483223/**
Note: See TracChangeset for help on using the changeset viewer.