[wp-trac] [WordPress Trac] #51513: Rename 'wp_is_application_passwords_available' filter and function

WordPress Trac noreply at wordpress.org
Tue Oct 13 21:10:21 UTC 2020


#51513: Rename 'wp_is_application_passwords_available' filter and function
----------------------------+-----------------------
 Reporter:  SergeyBiryukov  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  5.6
Component:  REST API        |    Version:
 Severity:  normal          |   Keywords:  has-patch
  Focuses:                  |
----------------------------+-----------------------
 Background: #42790, #50428.

 The current name of `wp_is_application_passwords_available` doesn't read
 like correct English to me :)

 I believe it should be `wp_application_passwords_enabled`, for consistency
 with other similar filters in core.

 This would also be more consistent with the strings displayed in the UI:

 * "Application passwords are not enabled."
 * "Application passwords are not enabled for your account. Please contact
 the site administrator for assistance."

 The same applies to `wp_is_application_passwords_available_for_user`.

 For reference, here's the list of filters and options with a similar
 purpose:

 * `plugins_auto_update_enabled`
 * `themes_auto_update_enabled`
 * `rest_enabled`
 * `rest_jsonp_enabled`
 * `xmlrpc_enabled`
 * `wp_fatal_error_handler_enabled`
 * `wp_lazy_loading_enabled`
 * `global_terms_enabled`
 * `link_manager_enabled`
 * `wp_sitemaps_enabled`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51513>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list