PluginProbe
Polylang / 3.1
Polylang v3.1
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 | include/olt-manager.php +1 -1 3.03.1 View file →
@@ -226,9 +226,9 @@
226 226 public function translate_labels( $type ) {
227 227 // Use static array to avoid translating several times the same ( default ) labels
228 228 static $translated = array();
229 229
230 - foreach ( $type->labels as $key => $label ) {
230 + foreach ( (array) $type->labels as $key => $label ) {
231 231 if ( is_string( $label ) && isset( $this->labels[ $label ] ) ) {
232 232 if ( empty( $translated[ $label ] ) ) {
233 233 // PHPCS:disable WordPress.WP.I18n
234 234 $type->labels->$key = $translated[ $label ] = isset( $this->labels[ $label ]['context'] ) ?