[wp-trac] [WordPress Trac] #42767: 'update_languages' capability is not promped to admins

WordPress Trac noreply at wordpress.org
Fri Dec 1 12:21:16 UTC 2017


#42767: 'update_languages' capability is not promped to admins
----------------------------+-----------------------------
 Reporter:  wdfee           |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  4.9
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 since 4.9 my admin user is not able to update language files anymore, no
 information about available language updates is shown. (But is shown in
 the number of available updates in admin bar and menu.)

 When I change in /wp-admin/update-core.php line 630 to

 {{{
 if ( current_user_can( 'update_languages' ) || current_user_can(
 'manage_options' ) ) {
 }}}

 and line 746 to
 {{{
 if ( ! current_user_can( 'update_languages' ) && ! current_user_can(
 'manage_options' ) ) {
 }}}
 it works again.
 So it seems somewhere the capability failed to be added to the admin.

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


More information about the wp-trac mailing list