Changeset 3385096
- Timestamp:
- 10/27/2025 09:53:06 AM (5 months ago)
- Location:
- kama-clic-counter
- Files:
-
- 6 edited
- 1 copied
-
tags/4.1.1 (copied) (copied from kama-clic-counter/trunk)
-
tags/4.1.1/kama_click_counter.php (modified) (1 diff)
-
tags/4.1.1/readme.txt (modified) (1 diff)
-
tags/4.1.1/src/Options.php (modified) (2 diffs)
-
trunk/kama_click_counter.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/Options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kama-clic-counter/tags/4.1.1/kama_click_counter.php
r3384825 r3385096 14 14 * Requires at least: 5.9 15 15 * 16 * Version: 4.1. 016 * Version: 4.1.1 17 17 */ 18 18 -
kama-clic-counter/tags/4.1.1/readme.txt
r3384825 r3385096 44 44 45 45 == Changelog == 46 47 = 4.1.1 = 48 - FIX: Minor bugfix on options update. 46 49 47 50 = 4.1.0 = -
kama-clic-counter/tags/4.1.1/src/Options.php
r3384825 r3385096 135 135 } 136 136 137 // TODO: write tests - check different types to not fatal 137 138 private function sanitize( array $options ): array { 138 139 foreach( $options as $key => & $val ){ … … 149 150 } 150 151 elseif( $key === 'access_roles' ){ 151 $val = array_map( 'sanitize_key', $val );152 $val = array_map( 'sanitize_key', (array) $val ); 152 153 $not_allowed_roles = [ 'contributor', 'subscriber' ]; 153 154 $val = array_filter( $val, static fn( $role ) => ! in_array( $role, $not_allowed_roles, true ) ); -
kama-clic-counter/trunk/kama_click_counter.php
r3384825 r3385096 14 14 * Requires at least: 5.9 15 15 * 16 * Version: 4.1. 016 * Version: 4.1.1 17 17 */ 18 18 -
kama-clic-counter/trunk/readme.txt
r3384825 r3385096 44 44 45 45 == Changelog == 46 47 = 4.1.1 = 48 - FIX: Minor bugfix on options update. 46 49 47 50 = 4.1.0 = -
kama-clic-counter/trunk/src/Options.php
r3384825 r3385096 135 135 } 136 136 137 // TODO: write tests - check different types to not fatal 137 138 private function sanitize( array $options ): array { 138 139 foreach( $options as $key => & $val ){ … … 149 150 } 150 151 elseif( $key === 'access_roles' ){ 151 $val = array_map( 'sanitize_key', $val );152 $val = array_map( 'sanitize_key', (array) $val ); 152 153 $not_allowed_roles = [ 'contributor', 'subscriber' ]; 153 154 $val = array_filter( $val, static fn( $role ) => ! in_array( $role, $not_allowed_roles, true ) );
Note: See TracChangeset
for help on using the changeset viewer.