Changeset 3444649
- Timestamp:
- 01/22/2026 09:22:15 AM (7 weeks ago)
- Location:
- client-portal
- Files:
-
- 4 edited
- 1 copied
-
tags/1.2.2 (copied) (copied from client-portal/trunk)
-
tags/1.2.2/index.php (modified) (4 diffs)
-
tags/1.2.2/readme.txt (modified) (2 diffs)
-
trunk/index.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
client-portal/tags/1.2.2/index.php
r3419801 r3444649 4 4 * Plugin URI: http://www.cozmoslabs.com/ 5 5 * Description: Build a company site with a client portal where clients login and see a restricted-access, personalized page of content with links and downloads. 6 * Version: 1.2. 16 * Version: 1.2.2 7 7 * Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian 8 8 * Author URI: http://www.cozmoslabs.com … … 74 74 /* add bulk action to create private user pages */ 75 75 add_filter( 'admin_footer-users.php', array( $this, 'cp_create_private_page_bulk_actions' ) ); 76 add_action( 'restrict_manage_users', array( $this, 'cp_add_bulk_action_nonce' ) ); 76 77 add_action( 'admin_action_create_private_page', array( $this, 'cp_create_private_pages_in_bulk' ) ); 77 78 … … 931 932 932 933 /** 934 * Function that adds nonce field to the Users table form for bulk actions 935 */ 936 function cp_add_bulk_action_nonce(){ 937 wp_nonce_field( 'cp_create_private_page_bulk_actions', 'cp_create_private_page_nonce' ); 938 } 939 940 /** 933 941 * Function that creates a private page for the selected users in the bulk action 934 942 */ 935 943 function cp_create_private_pages_in_bulk(){ 944 945 if( !isset( $_REQUEST['cp_create_private_page_nonce'] ) || !wp_verify_nonce( sanitize_text_field( $_REQUEST['cp_create_private_page_nonce'] ), 'cp_create_private_page_bulk_actions' ) ) 946 return; 947 948 if( !current_user_can( 'edit_users' ) ) 949 return; 950 936 951 if ( !empty( $_REQUEST['users'] ) && is_array( $_REQUEST['users'] ) ) { 937 952 $users = array_map( 'absint', $_REQUEST['users'] ); … … 940 955 } 941 956 } 957 942 958 } 943 959 -
client-portal/tags/1.2.2/readme.txt
r3419801 r3444649 5 5 Requires at least: 3.1 6 6 Tested up to: 6.9 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 37 37 38 38 == Changelog == 39 = 1.2.2 = 40 * Fix: Security issue regarding Broken Access Control when bulk generating private pages. Thanks to Nabil Irawan and the Patchstack team 41 39 42 = 1.2.1 = 40 * Fix translation notice43 * Fix: translation notice 41 44 42 45 = 1.2.0 = -
client-portal/trunk/index.php
r3419801 r3444649 4 4 * Plugin URI: http://www.cozmoslabs.com/ 5 5 * Description: Build a company site with a client portal where clients login and see a restricted-access, personalized page of content with links and downloads. 6 * Version: 1.2. 16 * Version: 1.2.2 7 7 * Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian 8 8 * Author URI: http://www.cozmoslabs.com … … 74 74 /* add bulk action to create private user pages */ 75 75 add_filter( 'admin_footer-users.php', array( $this, 'cp_create_private_page_bulk_actions' ) ); 76 add_action( 'restrict_manage_users', array( $this, 'cp_add_bulk_action_nonce' ) ); 76 77 add_action( 'admin_action_create_private_page', array( $this, 'cp_create_private_pages_in_bulk' ) ); 77 78 … … 931 932 932 933 /** 934 * Function that adds nonce field to the Users table form for bulk actions 935 */ 936 function cp_add_bulk_action_nonce(){ 937 wp_nonce_field( 'cp_create_private_page_bulk_actions', 'cp_create_private_page_nonce' ); 938 } 939 940 /** 933 941 * Function that creates a private page for the selected users in the bulk action 934 942 */ 935 943 function cp_create_private_pages_in_bulk(){ 944 945 if( !isset( $_REQUEST['cp_create_private_page_nonce'] ) || !wp_verify_nonce( sanitize_text_field( $_REQUEST['cp_create_private_page_nonce'] ), 'cp_create_private_page_bulk_actions' ) ) 946 return; 947 948 if( !current_user_can( 'edit_users' ) ) 949 return; 950 936 951 if ( !empty( $_REQUEST['users'] ) && is_array( $_REQUEST['users'] ) ) { 937 952 $users = array_map( 'absint', $_REQUEST['users'] ); … … 940 955 } 941 956 } 957 942 958 } 943 959 -
client-portal/trunk/readme.txt
r3419801 r3444649 5 5 Requires at least: 3.1 6 6 Tested up to: 6.9 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 37 37 38 38 == Changelog == 39 = 1.2.2 = 40 * Fix: Security issue regarding Broken Access Control when bulk generating private pages. Thanks to Nabil Irawan and the Patchstack team 41 39 42 = 1.2.1 = 40 * Fix translation notice43 * Fix: translation notice 41 44 42 45 = 1.2.0 =
Note: See TracChangeset
for help on using the changeset viewer.