diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 2279c16b62..e744175c9c 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -432,6 +432,10 @@ function map_meta_cap( $cap, $user_id ) { break; case 'install_languages': case 'update_languages': + if ( ! function_exists( 'request_filesystem_credentials' ) ) { + require_once( ABSPATH . 'wp-admin/includes/file.php' ); + } + if ( ! function_exists( 'wp_can_install_language_pack' ) ) { require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3c2222f08e..1407a55aef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-beta2-41884'; +$wp_version = '4.9-beta2-41885'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.