Plugin Directory

Changeset 3013146


Ignore:
Timestamp:
12/21/2023 11:16:31 PM (15 months ago)
Author:
shanebp
Message:

commit 2.2

Location:
bp-simple-private/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • bp-simple-private/trunk/inc/pp-private-front.php

    r2275474 r3013146  
    66
    77function pp_private_check() {
    8     global $wp, $bp_unfiltered_uri;
    98
    109    if ( ! is_admin() && ! is_user_logged_in() ) {
     
    3736
    3837        // bp_current_component() can return empty for some custom components, so also check the uri
    39         if ( in_array( $bp_unfiltered_uri[0], $pp_private_components ) ) {
     38        if ( in_array( buddypress()->unfiltered_uri, $pp_private_components ) ) {
    4039            bp_core_redirect( $redirect_url );
    4140        }
  • bp-simple-private/trunk/loader.php

    r2275474 r3013146  
    33/*
    44Plugin Name: BP Simple Private
    5 Description: Select whether posts, pages and BuddyPress sections can be viewed by non-logged-in users. See Settings > BP Simple Private
     5Description: Select whether posts, pages and BuddyPress or BuddyBoss sections can be viewed by non-logged-in users. See Settings > BP Simple Private
    66Version: 2.1
    77Author: PhiloPress
     
    3737        require( dirname( __FILE__ ) . '/inc/pp-private-admin-meta-box.php' );
    3838        require( dirname( __FILE__ ) . '/inc/pp-private-admin-settings.php' );
     39
    3940    } else {
    40         require( dirname( __FILE__ ) . '/inc/pp-private-front.php' );
     41
     42        if( function_exists('bp_classic_includes') ) {
     43            require( dirname( __FILE__ ) . '/inc/pp-private-front-bp-classic.php' );
     44        } else {
     45            require( dirname( __FILE__ ) . '/inc/pp-private-front.php' );
     46        }
    4147    }
    4248}
  • bp-simple-private/trunk/readme.txt

    r2275474 r3013146  
    66Plugin URI: https://philopress.com/
    77Requires at least: 4.0
    8 Tested up to: 5.4
    9 Stable tag: 2.1
     8Tested up to: 6.4
     9Stable tag: 2.2
    1010License: GPLv2 or later
    1111
    12 A simple Private Content settings plugin for BuddyPress.
    1312
    1413== Description ==
    1514
    16 This BuddyPress plugin allows administrators to select whether posts, pages and BuddyPress sections can be viewed by non-logged-in users.
     15A simple Private Content settings plugin for BuddyPress or the BuddyBoss Platform.
     16
     17This plugin allows administrators to select whether posts, pages and sections can be viewed by non-logged-in users.
    1718
    1819Your front page or home page will always be Public.
     
    2425* will redirect non-logged-in users trying to access private content to your front page or home page
    2526* provides a Settings screen in wp-admin: Settings > BP Simple Private
    26 * allows an admin to select which post types and BuddyPress Components are Private
     27* allows an admin to select which post types and BuddyPress or BuddyBoss components are Private
    2728* provides a Private checkbox in the upper right corner of every page, post, and custom post type selected in Settings
    2829
     
    4748Then you may be interested in [BP Simple Private Pro](https://www.philopress.com/products/bp-simple-private-pro/)
    4849
    49 For more BuddyPress plugins, please visit [PhiloPress](https://www.philopress.com/)
     50For more plugins, please visit [PhiloPress](https://www.philopress.com/)
    5051
    5152== Installation ==
     
    6162== Frequently Asked Questions ==
    6263
     64= BuddyBoss support? =
     65
     66Yes. Tested with the latest version of the BuddyBoss Platform and theme
     67
    6368= MultiSite support? =
    6469
     
    7378== Changelog ==
    7479
     80= 2.2 =
     81* fixes a bug when the BP Classic pluign is active
     82
    7583= 2.1 =
    7684* Tested with WP 5.4
    7785* bp_current_component() can return empty for some custom components, so now we also check the bp_uri
    78 
    7986
    8087= 2.0 =
     
    99106
    100107== Upgrade Notice ==
     108
     109= 2.2 =
     110* fixes a bug when the BP Classic pluign is active
    101111
    102112= 2.1 =
Note: See TracChangeset for help on using the changeset viewer.