| @@ -32,9 +32,9 @@ | ||
| 32 | 32 | <?php |
| 33 | 33 | printf( |
| 34 | 34 | /* translators: %s is the language of the front page ( flag, native name and locale ) */ |
| 35 | 35 | esc_html__( 'Its language is : %s.', 'polylang' ), |
| 36 | - $home_page_language->flag . ' <strong>' . esc_html( $home_page_language->name ) . ' ' . esc_html( $home_page_language->locale ) . '</strong>' //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 36 | + $home_page_language->get_admin_flag( 'aria-hidden' ) . ' <strong>' . esc_html( $home_page_language->name ) . ' ' . esc_html( $home_page_language->locale ) . '</strong>' //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 37 | 37 | ); |
| 38 | 38 | ?> |
| 39 | 39 | <br /> |
| 40 | 40 | <?php esc_html_e( 'For your site to work correctly, this page must be translated in all available languages.', 'polylang' ); ?> |
| @@ -59,9 +59,9 @@ | ||
| 59 | 59 | ?> |
| 60 | 60 | <tr> |
| 61 | 61 | <td> |
| 62 | 62 | <?php |
| 63 | - echo $language->flag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 63 | + echo $language->get_admin_flag( 'aria-hidden' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 64 | 64 | echo ' ' . esc_html( $language->name ) . ' ' . esc_html( $language->locale ) . ' '; |
| 65 | 65 | ?> |
| 66 | 66 | <?php if ( $language->is_default ) : ?> |
| 67 | 67 | <span class="icon-default-lang"> |
| @@ -104,9 +104,9 @@ | ||
| 104 | 104 | ?> |
| 105 | 105 | <tr> |
| 106 | 106 | <td> |
| 107 | 107 | <?php |
| 108 | - echo $lg->flag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 108 | + echo $lg->get_admin_flag( 'aria-hidden' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 109 | 109 | echo ' ' . esc_html( $lg->name ) . ' ' . esc_html( $lg->locale ) . ' '; |
| 110 | 110 | ?> |
| 111 | 111 | <?php if ( $lg->is_default ) : ?> |
| 112 | 112 | <span class="icon-default-lang"> |