Make WordPress Core


Ignore:
Timestamp:
01/23/2024 03:13:32 PM (2 years ago)
Author:
swissspidy
Message:

I18N: Improve edge case handling in WP_Translation_Controller.

Prevents PHP warnings for possibly undefined array keys.
Also fixes incorrect @covers annotations.

Follow-up to [57337].
See #59656.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/l10n/wpTranslationsConvert.php

    r57337 r57339  
    2929
    3030    /**
    31      * @covers ::unload
     31     * @covers ::unload_textdomain
    3232     *
    3333     * @return void
     
    4141    /**
    4242     * @covers ::load
    43      * @covers ::unload
     43     * @covers ::unload_textdomain
    4444     * @covers ::is_textdomain_loaded
    4545     * @covers ::translate
     
    6363
    6464    /**
    65      * @covers ::unload
     65     * @covers ::unload_file
    6666     * @covers WP_Translation_File::get_file
    6767     *
     
    7878
    7979    /**
    80      * @covers ::unload
     80     * @covers ::unload_textdomain
    8181     * @covers ::is_textdomain_loaded
    8282     *
     
    236236    /**
    237237     * @covers ::load
    238      * @covers ::unload
     238     * @covers ::unload_file
    239239     * @covers ::is_textdomain_loaded
    240240     * @covers ::translate
     
    290290     * @covers ::get_locale
    291291     * @covers ::load
    292      * @covers ::unload
     292     * @covers ::unload_file
    293293     * @covers ::is_textdomain_loaded
    294294     * @covers ::translate
     
    334334
    335335    /**
    336      * @covers ::unload
     336     * @covers ::unload_textdomain
    337337     *
    338338     * @return void
     
    412412    /**
    413413     * @covers ::load
    414      * @covers ::unload
    415414     * @covers ::is_textdomain_loaded
    416415     * @covers ::translate
Note: See TracChangeset for help on using the changeset viewer.