[wp-trac] [WordPress Trac] #39677: Introduce capabilities for managing translations

WordPress Trac noreply at wordpress.org
Fri Aug 18 18:30:30 UTC 2017


#39677: Introduce capabilities for managing translations
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  flixos90
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  4.9
Component:  Role/Capability                      |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-unit-tests needs-dev-note has-   |     Focuses:
  patch granular-capabilities commit             |
-------------------------------------------------+-------------------------
Changes (by flixos90):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41268"]:
 {{{
 #!CommitTicketReference repository="" revision="41268"
 Role/Capability: Introduce capabilities dedicated to installing and
 updating language files.

 The new meta capabilities are called `install_languages` and
 `update_languages`. Prior to this change, there were no proper capability
 checks applied. Instead only the filesystem and related constants were
 checked, and for actual permissions a rather vague fallback was used where
 a user needed to have at least one of the other updating capabilities. In
 addition to being generally more verbose, the new capabilities make it
 possible for example to allow a user to update languages, but nothing
 else. By default they fall back to the original way of how they were
 handled.

 Props johnbillion, flixos90.
 Fixes #39677.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39677#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list