Changeset 46323
- Timestamp:
- 09/26/2019 03:40:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r46319 r46323 1231 1231 } 1232 1232 1233 /** 1234 * Filters the capability required for displaying the admin email check screen. 1235 * 1236 * @since 5.3.0 1237 * 1238 * @param string $capability The capability required to display the admn email check screen. 1239 */ 1240 $admin_check_cap = apply_filters( 'admin_email_check_cap', 'manage_options' ); 1241 1233 1242 // Check if it is time to add a redirect to the admin email confirmation screen. 1234 if ( is_a( $user, 'WP_User' ) && $user->exists() && $user->has_cap( 'manage_options') ) {1243 if ( is_a( $user, 'WP_User' ) && $user->exists() && $user->has_cap( $admin_check_cap ) ) { 1235 1244 $admin_email_lifespan = (int) get_option( 'admin_email_lifespan' ); 1236 1245
Note: See TracChangeset
for help on using the changeset viewer.