Making WordPress.org

Changeset 12328


Ignore:
Timestamp:
12/15/2022 05:09:48 AM (2 years ago)
Author:
dd32
Message:

Support Forums: Also Viewing: Fix incorrect callbacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-also-viewing/wporg-bbp-also-viewing.php

    r10839 r12328  
    381381                return get_others_currently_viewing( (string) $request['page'] );
    382382            },
    383             'permission_callback' => 'is_user_logged_in',
     383            'permission_callback' => function() {
     384                return is_user_logged_in() && enabled();
     385            },
    384386        ],
    385387        [
     
    391393                );
    392394            },
    393             'permission_callback' => 'is_user_logged_in',
     395            'permission_callback' => function() {
     396                return is_user_logged_in() && enabled();
     397            },
    394398        ],
    395399        [
     
    398402                return clear_viewing( (string) $request['page'] );
    399403            },
    400             'permission_callback' => 'is_user_logged_in',
     404            'permission_callback' => function() {
     405                return is_user_logged_in() && enabled();
     406            },
    401407        ],
    402408    ] );
Note: See TracChangeset for help on using the changeset viewer.