Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/15/2020 04:53:02 AM (6 years ago)
Author:
imath
Message:

Groups: deprecate 4 functions no more used in BuddyPress

Deprecated functions are:

  • bp_group_public_status()
  • bp_get_group_public_status()
  • bp_group_is_public()
  • bp_get_group_is_public()

Props mattjones2207, espellcaste

Fixes #8146

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/deprecated/6.0.php

    r12562 r12568  
    8686    bp_members_screen_change_avatar();
    8787}
     88
     89/**
     90 * Output the status of the current group in the loop.
     91 *
     92 * Either 'Public' or 'Private'.
     93 *
     94 * @since 1.0.0
     95 * @deprecated 6.0.0 Not used anymore.
     96 *
     97 * @param object|bool $group Optional. Group object.
     98 *                           Default: current group in loop.
     99 */
     100function bp_group_public_status( $group = false ) {
     101    _deprecated_function( __FUNCTION__, '6.0' );
     102}
     103    /**
     104     * Return the status of the current group in the loop.
     105     *
     106     * Either 'Public' or 'Private'.
     107     *
     108     * @since 1.0.0
     109     * @deprecated 6.0.0 Not used anymore.
     110     *
     111     * @param object|bool $group Optional. Group object.
     112     *                           Default: current group in loop.
     113     * @return string
     114     */
     115    function bp_get_group_public_status( $group = false ) {
     116        _deprecated_function( __FUNCTION__, '6.0' );
     117    }
     118
     119/**
     120 * Output whether the current group in the loop is public.
     121 *
     122 * No longer used in BuddyPress.
     123 *
     124 * @deprecated 6.0.0 Not used anymore.
     125 *
     126 * @param object|bool $group Optional. Group object.
     127 *                           Default: current group in loop.
     128 */
     129function bp_group_is_public( $group = false ) {
     130    _deprecated_function( __FUNCTION__, '6.0' );
     131}
     132    /**
     133     * Return whether the current group in the loop is public.
     134     *
     135     * No longer used in BuddyPress.
     136     *
     137     * @deprecated 6.0.0 Not used anymore.
     138     *
     139     * @param object|bool $group Optional. Group object.
     140     *                           Default: current group in loop.
     141     * @return mixed
     142     */
     143    function bp_get_group_is_public( $group = false ) {
     144        _deprecated_function( __FUNCTION__, '6.0' );
     145    }
Note: See TracChangeset for help on using the changeset viewer.