Changeset 52398 for trunk/src/wp-includes/user.php
- Timestamp:
- 12/21/2021 02:43:18 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r52352 r52398 4659 4659 4660 4660 /** 4661 * Checks if Application Passwords is supported. 4662 * 4663 * Application Passwords is supported only by sites using SSL or local environments 4664 * but may be made available using the {@see 'wp_is_application_passwords_available'} filter. 4665 * 4666 * @since 5.9.0 4667 * 4668 * @return bool 4669 */ 4670 function wp_is_application_passwords_supported() { 4671 return is_ssl() || 'local' === wp_get_environment_type(); 4672 } 4673 4674 /** 4661 4675 * Checks if Application Passwords is globally available. 4662 4676 * 4663 4677 * By default, Application Passwords is available to all sites using SSL or to local environments. 4664 * Use {@see 'wp_is_application_passwords_available'}to adjust its availability.4678 * Use the {@see 'wp_is_application_passwords_available'} filter to adjust its availability. 4665 4679 * 4666 4680 * @since 5.6.0 … … 4669 4683 */ 4670 4684 function wp_is_application_passwords_available() { 4671 $available = is_ssl() || 'local' === wp_get_environment_type();4672 4673 4685 /** 4674 4686 * Filters whether Application Passwords is available. … … 4678 4690 * @param bool $available True if available, false otherwise. 4679 4691 */ 4680 return apply_filters( 'wp_is_application_passwords_available', $available);4692 return apply_filters( 'wp_is_application_passwords_available', wp_is_application_passwords_supported() ); 4681 4693 } 4682 4694
Note: See TracChangeset
for help on using the changeset viewer.