Plugin Directory

Changeset 3385096


Ignore:
Timestamp:
10/27/2025 09:53:06 AM (5 months ago)
Author:
Tkama
Message:

Update to version 4.1.1 from GitHub

Location:
kama-clic-counter
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • kama-clic-counter/tags/4.1.1/kama_click_counter.php

    r3384825 r3385096  
    1414 * Requires at least: 5.9
    1515 *
    16  * Version: 4.1.0
     16 * Version: 4.1.1
    1717 */
    1818
  • kama-clic-counter/tags/4.1.1/readme.txt

    r3384825 r3385096  
    4444
    4545== Changelog ==
     46
     47= 4.1.1 =
     48- FIX: Minor bugfix on options update.
    4649
    4750= 4.1.0 =
  • kama-clic-counter/tags/4.1.1/src/Options.php

    r3384825 r3385096  
    135135    }
    136136
     137    // TODO: write tests - check different types to not fatal
    137138    private function sanitize( array $options ): array {
    138139        foreach( $options as $key => & $val ){
     
    149150            }
    150151            elseif( $key === 'access_roles' ){
    151                 $val = array_map( 'sanitize_key', $val );
     152                $val = array_map( 'sanitize_key', (array) $val );
    152153                $not_allowed_roles =  [ 'contributor', 'subscriber' ];
    153154                $val = array_filter( $val, static fn( $role ) => ! in_array( $role, $not_allowed_roles, true ) );
  • kama-clic-counter/trunk/kama_click_counter.php

    r3384825 r3385096  
    1414 * Requires at least: 5.9
    1515 *
    16  * Version: 4.1.0
     16 * Version: 4.1.1
    1717 */
    1818
  • kama-clic-counter/trunk/readme.txt

    r3384825 r3385096  
    4444
    4545== Changelog ==
     46
     47= 4.1.1 =
     48- FIX: Minor bugfix on options update.
    4649
    4750= 4.1.0 =
  • kama-clic-counter/trunk/src/Options.php

    r3384825 r3385096  
    135135    }
    136136
     137    // TODO: write tests - check different types to not fatal
    137138    private function sanitize( array $options ): array {
    138139        foreach( $options as $key => & $val ){
     
    149150            }
    150151            elseif( $key === 'access_roles' ){
    151                 $val = array_map( 'sanitize_key', $val );
     152                $val = array_map( 'sanitize_key', (array) $val );
    152153                $not_allowed_roles =  [ 'contributor', 'subscriber' ];
    153154                $val = array_filter( $val, static fn( $role ) => ! in_array( $role, $not_allowed_roles, true ) );
Note: See TracChangeset for help on using the changeset viewer.