Changeset 6759 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/wporg-two-factor.php
- Timestamp:
- 02/26/2018 07:06:12 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/wporg-two-factor.php
r6758 r6759 199 199 */ 200 200 public static function enable_two_factor( $user_id ) { 201 // True if at least one provider method was set.202 201 return ( 203 202 update_user_meta( $user_id, self::PROVIDER_USER_META_KEY, 'WPORG_Two_Factor_Primary' ) && … … 223 222 public static function user_two_factor_options( $user ) { 224 223 wp_enqueue_script( 'two-factor-edit', plugins_url( 'js/profile-edit.js' , __FILE__ ), [ 'jquery' ], 1, true ); 225 wp_localize_script( 'two-factor-edit', 'two_factor_edit', array( 224 wp_localize_script( 'two-factor-edit', 'two_factor_edit', array( 226 225 'ajaxurl' => admin_url( 'admin-ajax.php' ), 227 226 ) );
Note: See TracChangeset
for help on using the changeset viewer.