Changeset 3123694
- Timestamp:
- 07/23/2024 09:12:09 AM (20 months ago)
- Location:
- pie-register/trunk
- Files:
-
- 3 edited
-
menus/PieRegRegistrationForm.php (modified) (1 diff)
-
pie-register.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pie-register/trunk/menus/PieRegRegistrationForm.php
r2836644 r3123694 103 103 </div> 104 104 <?php 105 if( current_user_can( ' administrator' ) ){105 if( current_user_can( 'piereg_manage_cap' ) ){ 106 106 do_action( 'admin_notices_specific_pages'); 107 107 } -
pie-register/trunk/pie-register.php
r3116424 r3123694 5 5 Plugin URI: https://pieregister.com/ 6 6 Description: Create custom user registration forms, drag & drop form builder, send invitation codes, add conditional logic, 2-step authentication, assign user roles, accept payments and more! 7 Version: 3.8.3. 57 Version: 3.8.3.6 8 8 Author: Pie Register 9 9 Author URI: https://pieregister.com/ … … 205 205 # Change User Avatar With Pie Profile Picture, If Used: 206 206 add_filter( 'get_avatar' , array($this,'pie_user_avatar') , 1 , 5 ); 207 if( !is_admin() && (is_user_logged_in() && !current_user_can(' administrator') ) )207 if( !is_admin() && (is_user_logged_in() && !current_user_can('piereg_manage_cap') ) ) 208 208 { 209 209 //add_filter( 'get_avatar' , array($this,'pie_user_avatar') , 1 , 5 ); 210 210 } 211 211 212 if( is_admin() && current_user_can(' administrator') )212 if( is_admin() && current_user_can('piereg_manage_cap') ) 213 213 { 214 214 add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1000 ); … … 235 235 //add_filter( 'wp_privacy_personal_data_exporters', array($this, 'register_my_plugin_exporter'), 10); 236 236 237 if( current_user_can( ' administrator' ) && $this->show_notice_premium_users ){237 if( current_user_can( 'piereg_manage_cap' ) && $this->show_notice_premium_users ){ 238 238 #Pro Version Release notices 239 239 add_action( 'admin_notices', array( $this, 'pie_free_notice_to_premium_users' ), 1 ); … … 766 766 } 767 767 768 // Check for permissions .769 if ( ! current_user_can( ' deactivate_plugins' ) ) {768 // Check for permissions of activate/deactivate. 769 if ( ! current_user_can( 'activate_plugins' ) ) { 770 770 wp_send_json_error( esc_html__( 'Plugin deactivation is disabled for you on this site.', 'pie-register' ) ); 771 771 } … … 3436 3436 $access = false; 3437 3437 3438 if ( is_user_logged_in() && current_user_can( ' administrator' ) ) {3438 if ( is_user_logged_in() && current_user_can( 'piereg_manage_cap' ) ) { 3439 3439 $access = true; 3440 3440 } … … 7446 7446 } 7447 7447 } 7448 elseif( isset($_GET['redirect_to']) && $_GET['redirect_to'] != "" && !current_user_can( ' administrator' ) ){7448 elseif( isset($_GET['redirect_to']) && $_GET['redirect_to'] != "" && !current_user_can( 'piereg_manage_cap' ) ){ 7449 7449 // When account login with activation link and not any login page assigned 7450 7450 if( (isset($_GET['action']) && $_GET['action'] == "activate") && (isset($_GET['activation_key']) && $_GET['activation_key'] != "") ) { -
pie-register/trunk/readme.txt
r3116424 r3123694 6 6 Tested up to: 6.5 7 7 Requires PHP: 5.6 8 Stable tag: 3.8.3. 58 Stable tag: 3.8.3.6 9 9 License: GNU Version 2 or Any Later Version 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 232 232 233 233 == CHANGELOG == 234 235 ### 3.8.3.6 236 237 *Released Date 23th July 2024* 238 239 * Fixed: Security vulnerability issues. 240 * Added: Capability checks. 241 234 242 ### 3.8.3.5 235 243
Note: See TracChangeset
for help on using the changeset viewer.