Changeset 3013146
- Timestamp:
- 12/21/2023 11:16:31 PM (15 months ago)
- 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 6 6 7 7 function pp_private_check() { 8 global $wp, $bp_unfiltered_uri;9 8 10 9 if ( ! is_admin() && ! is_user_logged_in() ) { … … 37 36 38 37 // 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 ) ) { 40 39 bp_core_redirect( $redirect_url ); 41 40 } -
bp-simple-private/trunk/loader.php
r2275474 r3013146 3 3 /* 4 4 Plugin 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 Private5 Description: Select whether posts, pages and BuddyPress or BuddyBoss sections can be viewed by non-logged-in users. See Settings > BP Simple Private 6 6 Version: 2.1 7 7 Author: PhiloPress … … 37 37 require( dirname( __FILE__ ) . '/inc/pp-private-admin-meta-box.php' ); 38 38 require( dirname( __FILE__ ) . '/inc/pp-private-admin-settings.php' ); 39 39 40 } 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 } 41 47 } 42 48 } -
bp-simple-private/trunk/readme.txt
r2275474 r3013146 6 6 Plugin URI: https://philopress.com/ 7 7 Requires at least: 4.0 8 Tested up to: 5.49 Stable tag: 2. 18 Tested up to: 6.4 9 Stable tag: 2.2 10 10 License: GPLv2 or later 11 11 12 A simple Private Content settings plugin for BuddyPress.13 12 14 13 == Description == 15 14 16 This BuddyPress plugin allows administrators to select whether posts, pages and BuddyPress sections can be viewed by non-logged-in users. 15 A simple Private Content settings plugin for BuddyPress or the BuddyBoss Platform. 16 17 This plugin allows administrators to select whether posts, pages and sections can be viewed by non-logged-in users. 17 18 18 19 Your front page or home page will always be Public. … … 24 25 * will redirect non-logged-in users trying to access private content to your front page or home page 25 26 * provides a Settings screen in wp-admin: Settings > BP Simple Private 26 * allows an admin to select which post types and BuddyPress Components are Private27 * allows an admin to select which post types and BuddyPress or BuddyBoss components are Private 27 28 * provides a Private checkbox in the upper right corner of every page, post, and custom post type selected in Settings 28 29 … … 47 48 Then you may be interested in [BP Simple Private Pro](https://www.philopress.com/products/bp-simple-private-pro/) 48 49 49 For more BuddyPressplugins, please visit [PhiloPress](https://www.philopress.com/)50 For more plugins, please visit [PhiloPress](https://www.philopress.com/) 50 51 51 52 == Installation == … … 61 62 == Frequently Asked Questions == 62 63 64 = BuddyBoss support? = 65 66 Yes. Tested with the latest version of the BuddyBoss Platform and theme 67 63 68 = MultiSite support? = 64 69 … … 73 78 == Changelog == 74 79 80 = 2.2 = 81 * fixes a bug when the BP Classic pluign is active 82 75 83 = 2.1 = 76 84 * Tested with WP 5.4 77 85 * bp_current_component() can return empty for some custom components, so now we also check the bp_uri 78 79 86 80 87 = 2.0 = … … 99 106 100 107 == Upgrade Notice == 108 109 = 2.2 = 110 * fixes a bug when the BP Classic pluign is active 101 111 102 112 = 2.1 =
Note: See TracChangeset
for help on using the changeset viewer.