| @@ -125,18 +125,20 @@ | ||
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * In WPML, get a language's native and translated name for display in a custom language switcher |
| 129 | - * Since Polylang does not implement the translated name, always returns only the native name, | |
| 130 | - * so the 3rd, 4th and 5th parameters are not used. | |
| 129 | + * Since Polylang does not implement the translated name, always returns only the native name | |
| 131 | 130 | * |
| 132 | 131 | * @since 2.2 |
| 133 | 132 | * |
| 134 | - * @param mixed $null Not used. | |
| 135 | - * @param string $native_name The language native name. | |
| 133 | + * @param mixed $null Not used. | |
| 134 | + * @param string $native_name The language native name. | |
| 135 | + * @param string|bool $translated_name The language translated name. Not used. | |
| 136 | + * @param bool $native_hidden Whether to hide the language native name or not. Not used. | |
| 137 | + * @param bool $translated_hidden Whether to hide the language translated name or not. Not used. | |
| 136 | 138 | * @return string |
| 137 | 139 | */ |
| 138 | - public function wpml_display_language_names( $null, $native_name ) { | |
| 140 | + public function wpml_display_language_names( $null, $native_name, $translated_name = false, $native_hidden = false, $translated_hidden = false ) { | |
| 139 | 141 | return $native_name; |
| 140 | 142 | } |
| 141 | 143 | |
| 142 | 144 | /** |
| @@ -169,11 +171,12 @@ | ||
| 169 | 171 | * Find out whether the current language text direction is RTL or not |
| 170 | 172 | * |
| 171 | 173 | * @since 2.0 |
| 172 | 174 | * |
| 175 | + * @param mixed $null Not used | |
| 173 | 176 | * @return bool |
| 174 | 177 | */ |
| 175 | - public function wpml_is_rtl() { | |
| 178 | + public function wpml_is_rtl( $null ) { | |
| 176 | 179 | return pll_current_language( 'is_rtl' ); |
| 177 | 180 | } |
| 178 | 181 | |
| 179 | 182 | /** |