Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 04:59:14 PM (6 months ago)
Author:
espellcaste
Message:

PHPDoc: Update incorrect instances of void.

Closes https://github.com/buddypress/buddypress/pull/302
See #9164

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r13878 r13882  
    11371137 *
    11381138 * @since 1.2.0
    1139  *
    1140  * @return mixed String on error, void on success.
    11411139 */
    11421140function bp_legacy_theme_delete_activity() {
     
    11791177 *
    11801178 * @since 1.2.0
    1181  *
    1182  * @return mixed String on error, void on success.
    11831179 */
    11841180function bp_legacy_theme_delete_activity_comment() {
     
    12211217 *
    12221218 * @since 1.6.0
    1223  *
    1224  * @return mixed String on error, void on success.
    12251219 */
    12261220function bp_legacy_theme_spam_activity() {
     
    15421536 *
    15431537 * @since 1.2.0
    1544  *
    1545  * @return mixed String on error, void on success.
    15461538 */
    15471539function bp_legacy_theme_ajax_accept_friendship() {
     
    15521544    check_admin_referer( 'friends_accept_friendship' );
    15531545
    1554     if ( ! friends_accept_friendship( (int) $_POST['id'] ) )
     1546    if ( ! friends_accept_friendship( (int) $_POST['id'] ) ) {
    15551547        echo "-1<div id='message' class='error'><p>" . esc_html__( 'There was a problem accepting that request. Please try again.', 'buddypress' ) . '</p></div>';
     1548    }
    15561549
    15571550    exit;
     
    15621555 *
    15631556 * @since 1.2.0
    1564  *
    1565  * @return mixed String on error, void on success.
    15661557 */
    15671558function bp_legacy_theme_ajax_reject_friendship() {
     
    15721563    check_admin_referer( 'friends_reject_friendship' );
    15731564
    1574     if ( ! friends_reject_friendship( (int) $_POST['id'] ) )
     1565    if ( ! friends_reject_friendship( (int) $_POST['id'] ) ) {
    15751566        echo "-1<div id='message' class='error'><p>" . esc_html__( 'There was a problem rejecting that request. Please try again.', 'buddypress' ) . '</p></div>';
     1567    }
    15761568
    15771569    exit;
     
    17021694 *
    17031695 * @since 1.2.0
    1704  *
    1705  * @return mixed String on error, void on success.
    17061696 */
    17071697function bp_legacy_theme_ajax_close_notice() {
     
    17931783 * @since 1.2.0
    17941784 * @deprecated 2.2.0
    1795  *
    1796  * @return mixed String on error, void on success.
    17971785 */
    17981786function bp_legacy_theme_ajax_message_markunread() {
     
    18071795 * @since 1.2.0
    18081796 * @deprecated 2.2.0
    1809  *
    1810  * @return mixed String on error, void on success.
    18111797 */
    18121798function bp_legacy_theme_ajax_message_markread() {
     
    18211807 * @since 1.2.0
    18221808 * @deprecated 2.2.0
    1823  *
    1824  * @return string|null HTML
    18251809 */
    18261810function bp_legacy_theme_ajax_messages_delete() {
Note: See TracChangeset for help on using the changeset viewer.