Making WordPress.org

Changeset 15081


Ignore:
Timestamp:
08/17/2026 01:51:41 PM (4 weeks ago)
Author:
ocean90
Message:

Translate: Avoid escaping HTML for icons.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/index-locales.php

    r6342 r15081  
    4141                                                isset( $contributors_count[ $locale->slug ] ) ? $contributors_count[ $locale->slug ] : 0
    4242                                        );
    43                                         echo gp_link_get( 'https://make.wordpress.org/polyglots/teams/?locale=' . $locale->wp_locale, $contributors );
    4443                                        ?>
     44                                        <a href="<?php echo esc_url( 'https://make.wordpress.org/polyglots/teams/?locale=' . $locale->wp_locale ); ?>"><?php echo $contributors; ?></a>
    4545                                </div>
    4646                                <div class="percent">
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-projects.php

    r12439 r15081  
    5757                                isset( $contributors_count[ $locale->slug ] ) ? $contributors_count[ $locale->slug ] : 0
    5858                        );
    59                         echo gp_link_get( 'https://make.wordpress.org/polyglots/teams/?locale=' . $locale->wp_locale, $contributors );
    6059                        ?>
     60                        <a href="<?php echo esc_url( 'https://make.wordpress.org/polyglots/teams/?locale=' . $locale->wp_locale );?>"><?php echo $contributors; ?></a>
    6161                </div>
    6262        </div>
     
    212212                        <div class="project-top">
    213213                                <div class="project-icon">
    214                                         <?php echo gp_link_get( $project_url, $project_icon ) ?>
     214                                        <a href="<?php echo esc_url( $project_url ); ?>"><?php echo $project_icon; ?></a>
    215215                                </div>
    216216
Note: See TracChangeset for help on using the changeset viewer.