diff --git src/wp-admin/includes/list-table.php src/wp-admin/includes/list-table.php
index 168aebbd43..fe2f5b716b 100644
|
|
function _get_list_table( $class, $args = array() ) { |
52 | 52 | $args['screen'] = null; |
53 | 53 | } |
54 | 54 | |
| 55 | |
| 56 | /** |
| 57 | * Filters the class of an existing list table. |
| 58 | * |
| 59 | * @since ??? |
| 60 | * |
| 61 | * @param null|WP_List_Table The instance to return instead of the list_table instance. This differs from |
| 62 | * `$class`. Default null |
| 63 | * @param class $class The instance of type of the WP_List_Table class. |
| 64 | * @param array $args Optional. Arguments to pass to the class. |
| 65 | */ |
| 66 | $instance = apply_filters( 'admin_get_list_table_instance', null, $class, $args ); |
| 67 | if ( is_a( $instance, $class ) ) { |
| 68 | return $instance; |
| 69 | } elseif( ! is_null( $instance ) ){ |
| 70 | return false; |
| 71 | } |
| 72 | |
| 73 | |
55 | 74 | return new $class( $args ); |
56 | 75 | } |
57 | 76 | |
diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php
index a0438e9c53..059677e754 100644
|
|
function remove_accents( $string ) { |
1713 | 1713 | 'Ĭ' => 'I', |
1714 | 1714 | 'ĭ' => 'i', |
1715 | 1715 | 'Į' => 'I', |
| 1716 | '΅I' => 'I', |
| 1717 | 'ΐ' => 'i', |
1716 | 1718 | 'į' => 'i', |
1717 | 1719 | 'İ' => 'I', |
1718 | 1720 | 'ı' => 'i', |
diff --git tests/phpunit/tests/formatting/RemoveAccents.php tests/phpunit/tests/formatting/RemoveAccents.php
index 32ea89e5f1..eb0fd5e773 100644
|
|
class Tests_Formatting_RemoveAccents extends WP_UnitTestCase { |
143 | 143 | |
144 | 144 | $this->assertEquals( 'Dd', remove_accents( 'Đđ' ) ); |
145 | 145 | } |
| 146 | |
| 147 | /** |
| 148 | * @ticket 44793 |
| 149 | */ |
| 150 | public function test_remove_accents_all_i() { |
| 151 | $input = '΅Iΐ'; |
| 152 | $output = 'Ii'; |
| 153 | |
| 154 | $this->assertEquals( $output, remove_accents( $input ), 'remove_accents replaces accented I' ); |
| 155 | |
| 156 | } |
| 157 | |
146 | 158 | } |