#44457 closed defect (bug) (fixed)
Rename `upgrade_php` capability to `update_php`
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | 5.1 |
Component: | Site Health | Keywords: | servehappy has-patch |
Focuses: | Cc: |
Description
In today's PHP meeting, we decided to use the term "update" instead of "upgrade" throughout. This is in line with how WordPress has commonly used only "update", with "upgrade" only appearing sometimes internally in the code.
Similar capabilities are called update_core
, update_plugins
etc., so our capability should be in line with this too. While we initially considered "upgrade" a more fitting term for PHP, eventually consistency makes sense here, and users are more familiar already with the term "update".
This is a follow-up to #41191. Since the capability has not been part of any WordPress release and has not been used outside of its single use-case, we can easily rename it without backward-compatibility implications.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
44457.diff changes the name, and also includes a CS violation fix in affected code.