[wp-trac] [WordPress Trac] #42230: current_user_can( 'install_languages' ) calls a function which may not be defined
WordPress Trac
noreply at wordpress.org
Mon Oct 16 22:54:16 UTC 2017
#42230: current_user_can( 'install_languages' ) calls a function which may not be
defined
-----------------------------+-----------------------
Reporter: johnbillion | Owner: flixos90
Type: defect (bug) | Status: closed
Priority: low | Milestone: 4.9
Component: Role/Capability | Version: trunk
Severity: critical | Resolution: fixed
Keywords: has-patch | Focuses:
-----------------------------+-----------------------
Changes (by flixos90):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"41885"]:
{{{
#!CommitTicketReference repository="" revision="41885"
Role/Capability: Prevent a fatal error when checking a language capability
early or in the frontend.
The meta capabilities `install_languages` and `update_languages` rely on
the admin function `wp_can_install_language_pack()`. That function in turn
relies on `request_filesystem_credentials()`, so it needs to be ensured
that this function is available as well.
Fixes #42230.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42230#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list