Changeset 42607 for branches/4.9/src/wp-includes/capabilities.php
- Timestamp:
- 01/24/2018 10:58:22 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/capabilities.php
r41885 r42607 433 433 case 'install_languages': 434 434 case 'update_languages': 435 if ( ! function_exists( 'request_filesystem_credentials' ) ) { 436 require_once( ABSPATH . 'wp-admin/includes/file.php' ); 437 } 438 439 if ( ! function_exists( 'wp_can_install_language_pack' ) ) { 440 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 441 } 442 443 if ( ! wp_can_install_language_pack() ) { 435 if ( ! wp_is_file_mod_allowed( 'can_install_language_pack' ) ) { 444 436 $caps[] = 'do_not_allow'; 445 437 } elseif ( is_multisite() && ! is_super_admin( $user_id ) ) {
Note: See TracChangeset
for help on using the changeset viewer.