Make WordPress Core

Ticket #54362: 54362.2.patch

File 54362.2.patch, 879 bytes (added by aezazshekh, 5 years ago)

Whenever we use URL in the href, it should always be written in the escaping function

  • plugin-install.php

     
    697697                                ?>
    698698                                </li>
    699699                        <?php } if ( ! empty( $api->slug ) && empty( $api->external ) ) { ?>
    700                                 <li><a target="_blank" href="<?php echo __( 'https://wordpress.org/plugins/' ) . $api->slug; ?>/"><?php _e( 'WordPress.org Plugin Page &#187;' ); ?></a></li>
     700                                <li><a target="_blank" href="<?php echo esc_url( 'https://wordpress.org/plugins/'. $api->slug; ) ?>/"><?php _e( 'WordPress.org Plugin Page &#187;' ); ?></a></li>
    701701                        <?php } if ( ! empty( $api->homepage ) ) { ?>
    702702                                <li><a target="_blank" href="<?php echo esc_url( $api->homepage ); ?>"><?php _e( 'Plugin Homepage &#187;' ); ?></a></li>
    703703                        <?php } if ( ! empty( $api->donate_link ) && empty( $api->contributors ) ) { ?>