Make WordPress Core

Changeset 38953


Ignore:
Timestamp:
10/26/2016 12:16:14 PM (8 years ago)
Author:
SergeyBiryukov
Message:

I18N: Allow for WordPress Plugin Directory URL in plugin details modal to be localized.

Props Soean.
Fixes #38495. See #37501.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r38805 r38953  
    575575                    ?></li>
    576576            <?php } if ( ! empty( $api->slug ) && empty( $api->external ) ) { ?>
    577                 <li><a target="_blank" href="https://wordpress.org/plugins/<?php echo $api->slug; ?>/"><?php _e( 'WordPress.org Plugin Page &#187;' ); ?></a></li>
     577                <li><a target="_blank" href="<?php echo __( 'https://wordpress.org/plugins/' ) . $api->slug; ?>/"><?php _e( 'WordPress.org Plugin Page &#187;' ); ?></a></li>
    578578            <?php } if ( ! empty( $api->homepage ) ) { ?>
    579579                <li><a target="_blank" href="<?php echo esc_url( $api->homepage ); ?>"><?php _e( 'Plugin Homepage &#187;' ); ?></a></li>
Note: See TracChangeset for help on using the changeset viewer.