[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:50:04 UTC 2017
#42230: current_user_can( 'install_languages' ) calls a function which may not be
defined
-----------------------------+-----------------------
Reporter: johnbillion | Owner: flixos90
Type: defect (bug) | Status: assigned
Priority: low | Milestone: 4.9
Component: Role/Capability | Version: trunk
Severity: critical | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+-----------------------
Changes (by flixos90):
* keywords: needs-patch => has-patch
Comment:
[attachment:42230.diff] loads `wp-admin/includes/file.php` before checking
`wp_can_install_language_pack()` to prevent fatals when calling
`request_filesystem_credentials()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42230#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list