Making WordPress.org


Ignore:
Timestamp:
02/26/2018 10:32:30 PM (7 years ago)
Author:
obenland
Message:

2FA: Limit UI to caped users.

See #77.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/wporg-two-factor.php

    r6762 r6775  
    223223     */
    224224    public static function user_two_factor_options( $user ) {
     225        if ( ! function_exists( 'is_caped' ) || ! is_caped() ) {
     226            return;
     227        }
     228
    225229        wp_enqueue_script( 'two-factor-edit', plugins_url( 'js/profile-edit.js' , __FILE__ ), [ 'jquery' ], 1, true );
    226230        wp_localize_script( 'two-factor-edit', 'two_factor_edit', array(
Note: See TracChangeset for help on using the changeset viewer.