PluginProbe
Polylang / 2.8
Polylang v2.8
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | modules/wpml/wpml-api.php +9 -6 2.92.8 View file →
@@ -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 /**