Make WordPress Core


Ignore:
Timestamp:
06/23/2016 01:27:32 PM (10 years ago)
Author:
ocean90
Message:

I18N: Add support for the Catalan flown dot in remove_accents().

Props xavivars, SergeyBiryukov.
Fixes #37086.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/RemoveAccents.php

    r26585 r37853  
    111111    }
    112112
     113    public function _set_locale_to_catalan() {
     114        return 'ca';
     115    }
     116
     117    /**
     118    * @ticket 37086
     119    */
     120    public function test_remove_catalan_middot() {
     121        add_filter( 'locale', array( $this, '_set_locale_to_catalan' ) );
     122
     123        $this->assertEquals( 'allallalla', remove_accents( 'al·lallaŀla' ) );
     124       
     125        remove_filter( 'locale', array( $this, '_set_locale_to_catalan' ) );
     126       
     127        $this->assertEquals( 'al·lallalla', remove_accents( 'al·lallaŀla' ) );
     128    }
    113129}
Note: See TracChangeset for help on using the changeset viewer.