Changeset 14698
- Timestamp:
- 03/12/2026 03:22:44 AM (41 hours ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 3 edited
-
api/routes/class-plugin-release-confirmation.php (modified) (1 diff)
-
shortcodes/class-release-confirmation.php (modified) (2 diffs)
-
shortcodes/class-upload.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-release-confirmation.php
r14503 r14698 118 118 } 119 119 120 if ( ! class_exists( 'Two_Factor_Core' ) ) { 121 return true; 122 } 123 120 124 // Check to see if they've confirmed their 2FA status recently.. 121 125 $status = get_revalidation_status(); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-release-confirmation.php
r14697 r14698 69 69 70 70 // If the user is not using 2FA, show a notice. 71 if ( ! Two_Factor_Core::is_user_using_two_factor( get_current_user_id() ) ) { 71 if ( 72 class_exists( 'Two_Factor_Core' ) && 73 ! Two_Factor_Core::is_user_using_two_factor( get_current_user_id() ) 74 ) { 72 75 printf( 73 76 '<div class="plugin-notice notice notice-error notice-alt"><p>%s</p></div>', … … 283 286 if ( 284 287 ! is_user_logged_in() || 285 ! Two_Factor_Core::is_user_using_two_factor( get_current_user_id() ) ||286 288 ! current_user_can( 'plugin_manage_releases', $plugin ) || 289 ( class_exists( 'Two_Factor_Core' ) && ! Two_Factor_Core::is_user_using_two_factor( get_current_user_id() ) ) || 287 290 288 291 // No need to show actions if the release can't be confirmed, or is already confirmed -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
r14697 r14698 65 65 // Require 2FA for plugin authors on upload. 66 66 if ( 67 function_exists( 'WordPressdotorg\Two_Factor\user_requires_2fa' ) && 68 class_exists( 'Two_Factor_Core' ) && 67 69 user_requires_2fa( wp_get_current_user() ) && 68 70 ! Two_Factor_Core::is_user_using_two_factor( get_current_user_id() ) … … 394 396 ) 395 397 ); 396 } else if ( is_email_address_unsafe( wp_get_current_user()->user_email ) ) {398 } else if ( function_exists( 'is_email_address_unsafe' ) /* multisite-only */ && is_email_address_unsafe( wp_get_current_user()->user_email ) ) { 397 399 echo '<div class="notice notice-error notice-alt"><p>' . 398 400 sprintf(
Note: See TracChangeset
for help on using the changeset viewer.