PluginProbe
Polylang / 3.8.10
Polylang v3.8.10
3.8.10 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 All 234 releases
← All changes | src/language.php +8 -0 3.8.3 → 3.8.10 View file →
@@ -415,8 +415,16 @@
415 415 if ( empty( $flag['src'] ) || ( $flag['src'] === $default_flag['src'] && $flag['url'] !== $default_flag['url'] ) ) {
416 416 $flag['src'] = esc_url( set_url_scheme( $flag['url'], 'relative' ) );
417 417 }
418 418
419 + if ( isset( $flag['width'] ) ) {
420 + $flag['width'] = absint( $flag['width'] );
421 + }
422 +
423 + if ( isset( $flag['height'] ) ) {
424 + $flag['height'] = absint( $flag['height'] );
425 + }
426 +
419 427 return $flag;
420 428 }
421 429
422 430 /**