Changeset 42606 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 01/24/2018 10:41:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r42343 r42606 440 440 case 'install_languages': 441 441 case 'update_languages': 442 if ( ! function_exists( 'request_filesystem_credentials' ) ) { 443 require_once( ABSPATH . 'wp-admin/includes/file.php' ); 444 } 445 446 if ( ! function_exists( 'wp_can_install_language_pack' ) ) { 447 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 448 } 449 450 if ( ! wp_can_install_language_pack() ) { 442 if ( ! wp_is_file_mod_allowed( 'can_install_language_pack' ) ) { 451 443 $caps[] = 'do_not_allow'; 452 444 } elseif ( is_multisite() && ! is_super_admin( $user_id ) ) {
Note: See TracChangeset
for help on using the changeset viewer.