Changeset 49139
- Timestamp:
- 10/13/2020 08:08:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r49109 r49139 4098 4098 * Checks if Application Passwords is globally available. 4099 4099 * 4100 * By default, Application Passwords is available to all sites using SSL , but this function is4101 * filterableto adjust its availability.4100 * By default, Application Passwords is available to all sites using SSL or to local environments. 4101 * Use {@see 'wp_is_application_passwords_available'} to adjust its availability. 4102 4102 * 4103 4103 * @since 5.6.0 … … 4106 4106 */ 4107 4107 function wp_is_application_passwords_available() { 4108 $available = is_ssl() || 'local' === wp_get_environment_type(); 4109 4108 4110 /** 4109 4111 * Filters whether Application Passwords is available. … … 4113 4115 * @param bool $available True if available, false otherwise. 4114 4116 */ 4115 return apply_filters( 'wp_is_application_passwords_available', is_ssl());4117 return apply_filters( 'wp_is_application_passwords_available', $available ); 4116 4118 } 4117 4119 … … 4119 4121 * Checks if Application Passwords is enabled for a specific user. 4120 4122 * 4121 * By default all users can use Application Passwords , but this function is filterable to restrict4122 * availability to certain users.4123 * By default all users can use Application Passwords. Use {@see 'wp_is_application_passwords_available_for_user'} 4124 * to restrict availability to certain users. 4123 4125 * 4124 4126 * @since 5.6.0
Note: See TracChangeset
for help on using the changeset viewer.