Making WordPress.org


Ignore:
Timestamp:
09/02/2016 10:08:01 PM (8 years ago)
Author:
coffee2code
Message:

Plugin Directory: Update ratings widget links to point to the new plugin reviews forum URL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-ratings.php

    r3517 r3935  
    4040
    4141        <?php if ( $rating ) : ?>
    42             <a class="reviews-link" href="<?php echo esc_url( 'https://wordpress.org/support/view/plugin-reviews/' . $post->post_name ); ?>"><?php _ex( 'See all', 'reviews', 'wporg-plugins' ); ?></a>
     42            <a class="reviews-link" href="<?php echo esc_url( 'https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/' ); ?>"><?php _ex( 'See all', 'reviews', 'wporg-plugins' ); ?></a>
    4343
    4444            <div class="rating">
     
    5252                    ?>
    5353                    <li class="counter-container">
    54                         <a href="<?php echo esc_url( 'https://wordpress.org/support/view/plugin-reviews/' . $post->post_name . '?filter=' . $stars ); ?>">
     54                        <a href="<?php echo esc_url( 'https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/?filter=' . $stars ); ?>">
    5555                            <span class="counter-label"><?php printf( _n( '%d star', '%d stars', $stars, 'wporg-plugin' ), $stars ); ?></span>
    5656                    <span class="counter-back">
     
    7373        if ( is_user_logged_in() ) : ?>
    7474            <div class="user-rating">
    75                 <a class="button button-secondary" href="<?php echo esc_url( 'https://wordpress.org/support/view/plugin-reviews/' . $post->post_name . '#postform' ); ?>"><?php _e( 'Add my review', 'wporg-plugins' ); ?></a>
     75                <a class="button button-secondary" href="<?php echo esc_url( 'https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/#new-post' ); ?>"><?php _e( 'Add my review', 'wporg-plugins' ); ?></a>
    7676            </div>
    7777            <?php
Note: See TracChangeset for help on using the changeset viewer.