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

WordPress Trac noreply at wordpress.org
Thu Jul 27 01:25:36 UTC 2017


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

Comment (by johnbillion):

 I'm happy with this change, and it mostly looks very good. Changes I've
 made in [attachment:39677.4.diff]:

 * In `site-new.php`, ensure a chosen existing language can still get set
 for a site when the user cannot install languages.
 * Remove `@todo` notes which are now done since [29630].
 * Add a `wp_` prefix to `wp_maybe_grant_install_languages_cap()`.

 Remaining question: Should the three cap checks at the top of `update-
 core.php` (line 22) be altered to include `update_languages`? Is this
 screen usable if a user ''only'' has that cap?

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


More information about the wp-trac mailing list