Make WordPress Core


Ignore:
Timestamp:
05/11/2017 07:23:45 PM (9 years ago)
Author:
swissspidy
Message:

Upgrade/Install: After [40394], rename wp_disallow_file_mods() to wp_is_file_mod_allowed().

This makes it more clear what this function is about.

Props Mte90.
Fixes #38673.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/translation-install.php

    r40394 r40638  
    203203        }
    204204
    205         if ( wp_disallow_file_mods( 'download_language_pack' ) ) {
     205        if ( ! wp_is_file_mod_allowed( 'download_language_pack' ) ) {
    206206                return false;
    207207        }
    … …  
    246246 */
    247247function wp_can_install_language_pack() {
    248         if ( wp_disallow_file_mods( 'can_install_language_pack' ) ) {
     248        if ( ! wp_is_file_mod_allowed( 'can_install_language_pack' ) ) {
    249249                return false;
    250250        }
Note: See TracChangeset for help on using the changeset viewer.