Make WordPress Core


Ignore:
Timestamp:
01/25/2024 07:51:12 AM (22 months ago)
Author:
swissspidy
Message:

I18N: Rename WP_Translation_Controller::instance() method to get_instance().

This improves consistency as get_instance() is more commonly used in core.

See #59656.

File:
1 edited

Legend:

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

    r57344 r57350  
    1111     */
    1212    public function test_get_instance() {
    13         $instance  = WP_Translation_Controller::instance();
    14         $instance2 = WP_Translation_Controller::instance();
     13        $instance  = WP_Translation_Controller::get_instance();
     14        $instance2 = WP_Translation_Controller::get_instance();
    1515
    1616        $this->assertSame( $instance, $instance2 );
Note: See TracChangeset for help on using the changeset viewer.