Plugin Directory

Changeset 2452372


Ignore:
Timestamp:
01/08/2021 08:53:59 AM (5 years ago)
Author:
2fas
Message:

Release v3.0.2

Location:
2fas-light/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • 2fas-light/trunk/changelog.txt

    r2449827 r2452372  
    11== Changelog ==
    22
    3 = 3.0.1 (Jan. 1, 2021) =
     3= 3.0.2 (Jan. 8, 2021) =
     4* Fixed bug in custom column filter
     5
     6= 3.0.1 (Jan. 4, 2021) =
    47* Fixed bug in custom column filter
    58
  • 2fas-light/trunk/constants.php

    r2449827 r2452372  
    1515define( 'TWOFAS_LIGHT_TEMPLATES_PATH', $templates_path );
    1616define( 'TWOFAS_LIGHT_WP_ADMIN_PATH', $admin_url );
    17 define( 'TWOFAS_LIGHT_PLUGIN_VERSION', '3.0.1' );
     17define( 'TWOFAS_LIGHT_PLUGIN_VERSION', '3.0.2' );
  • 2fas-light/trunk/readme.txt

    r2449827 r2452372  
    103103== Changelog ==
    104104
    105 = 3.0.1 (Jan. 1, 2021) =
     105= 3.0.2 (Jan. 8, 2021) =
     106* Fixed bug in custom column filter
     107
     108= 3.0.1 (Jan. 4, 2021) =
    106109* Fixed bug in custom column filter
    107110
  • 2fas-light/trunk/src/Hooks/Add_Custom_Column_Filter.php

    r2449827 r2452372  
    11<?php
    2 declare(strict_types=1);
     2declare( strict_types=1 );
    33
    44namespace TwoFAS\Light\Hooks;
     
    1515
    1616class Add_Custom_Column_Filter implements Hook_Interface {
    17 
     17   
    1818    /**
    1919     * @var FactoryInterface
    2020     */
    2121    private $user_factory;
    22 
     22   
    2323    /**
    2424     * @param FactoryInterface $user_factory
     
    2727        $this->user_factory = $user_factory;
    2828    }
    29 
     29   
    3030    public function register_hook() {
    3131        add_filter( 'user_row_actions', [ $this, 'user_row_actions' ], 10, 2 );
     
    3333        add_filter( 'manage_users_custom_column', [ $this, 'manage_users_custom_column' ], 10, 3 );
    3434    }
    35 
     35   
    3636    /**
    3737     * @param array   $actions
     
    5151                    __( 'Edit your 2FAS settings', '2fas' ) ) . '">2FAS</a>';
    5252        }
    53 
     53       
    5454        return $actions;
    5555    }
    56 
     56   
    5757    public function manage_users_columns( array $columns ): array {
    5858        if ( current_user_can( Capabilities::ADMIN ) ) {
    5959            $columns['twofas_2fa_status'] = '2FAS';
    6060        }
    61 
     61       
    6262        return $columns;
    6363    }
    64 
     64   
    6565    /**
    66      * @param string $value
    67      * @param string $column_name
    68      * @param int    $user_id
     66     * @param string|null $value
     67     * @param string      $column_name
     68     * @param int         $user_id
    6969     *
    70      * @return string
     70     * @return string|null
    7171     *
    7272     * @throws InvalidArgumentException
     
    7474     * @throws NotFoundException
    7575     */
    76     public function manage_users_custom_column( $value, string $column_name, int $user_id ): string {
     76    public function manage_users_custom_column( $value, string $column_name, int $user_id ) {
    7777        switch ( $column_name ) {
    7878            case 'twofas_2fa_status':
     
    8181                $user_storage->set_wp_user( new WP_User( $user_id ) );
    8282                $value = $user_storage->is_totp_enabled() ? __( 'Active', '2fas' ) : __( 'Inactive', '2fas' );
    83 
     83               
    8484                break;
    8585        }
    86 
     86       
    8787        return $value;
    8888    }
  • 2fas-light/trunk/twofas_light.php

    r2449827 r2452372  
    44 * Plugin URI:        https://wordpress.org/plugins/2fas-light/
    55 * Description:       Free, simple, token-based authentication (Google Authenticator) for your WordPress. No registration needed.
    6  * Version:           3.0.1
     6 * Version:           3.0.2
    77 * Requires PHP:      7.0
    88 * Requires at least: 4.9
  • 2fas-light/trunk/vendor/composer/InstalledVersions.php

    r2449827 r2452372  
    2020    array (
    2121    ),
    22     'reference' => '6a5bc1a9c38312b15f39bf27d550475c5fec9e8c',
     22    'reference' => '365fa139f5071111df87589441869d48c5ee6d61',
    2323    'name' => 'twofas/wp-plugin-secure',
    2424  ),
     
    210210      array (
    211211      ),
    212       'reference' => '6a5bc1a9c38312b15f39bf27d550475c5fec9e8c',
     212      'reference' => '365fa139f5071111df87589441869d48c5ee6d61',
    213213    ),
    214214    'whichbrowser/parser' =>
  • 2fas-light/trunk/vendor/composer/installed.php

    r2449827 r2452372  
    77    array (
    88    ),
    9     'reference' => '6a5bc1a9c38312b15f39bf27d550475c5fec9e8c',
     9    'reference' => '365fa139f5071111df87589441869d48c5ee6d61',
    1010    'name' => 'twofas/wp-plugin-secure',
    1111  ),
     
    197197      array (
    198198      ),
    199       'reference' => '6a5bc1a9c38312b15f39bf27d550475c5fec9e8c',
     199      'reference' => '365fa139f5071111df87589441869d48c5ee6d61',
    200200    ),
    201201    'whichbrowser/parser' =>
Note: See TracChangeset for help on using the changeset viewer.