Changeset 5061 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php
- Timestamp:
- 03/03/2017 07:10:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php
r4936 r5061 116 116 $notice = _x( 'This is your review of %1$s, you can <a href="%2$s">edit your review</a> at any time.', 'plugin', 'wporg-forums' ); 117 117 $object_link = sprintf( '<a href="//wordpress.org/plugins/%s/">%s</a>', esc_attr( $this->slug ), esc_html( $this->object->post_title ) ); 118 $edit_url = sprintf( '//wordpress.org/support/plugin/%s/reviews/#new-post', esc_attr( $this->slug ) );118 $edit_url = sprintf( home_url( '/plugin/%s/reviews/#new-post' ), esc_attr( $this->slug ) ); 119 119 break; 120 120 case 'theme' : … … 122 122 $notice = _x( 'This is your review of %1$s, you can <a href="%2$s">edit your review</a> at any time.', 'theme', 'wporg-forums' ); 123 123 $object_link = sprintf( '<a href="//wordpress.org/themes/%s/">%s</a>', esc_attr( $this->slug ), esc_html( $this->object->post_title ) ); 124 $edit_url = sprintf( '//wordpress.org/support/theme/%s/reviews/#new-post', esc_attr( $this->slug ) );124 $edit_url = sprintf( home_url( '/theme/%s/reviews/#new-post' ), esc_attr( $this->slug ) ); 125 125 break; 126 126 } … … 201 201 ?> 202 202 <div class="counter-container"> 203 <a href="<?php echo esc_url( sprintf( 'https://wordpress.org/support/%s/%s/reviews/?filter=%s', $this->compat, $this->slug, $rating ) ); ?>"203 <a href="<?php echo esc_url( sprintf( home_url( '/%s/%s/reviews/?filter=%s' ), $this->compat, $this->slug, $rating ) ); ?>" 204 204 title="<?php echo esc_attr( $stars_title ); ?>"> 205 205 <span class="counter-label" style="float:left;margin-right:5px;min-width:58px;"><?php echo esc_html( $stars_text ); ?></span> … … 242 242 add_query_arg( 243 243 'redirect_to', 244 urlencode( esc_url_raw( sprintf( 'https://wordpress.org/support/%s/%s/reviews/', $this->compat, $this->slug ) ) ),244 urlencode( esc_url_raw( sprintf( home_url( '/%s/%s/reviews/' ), $this->compat, $this->slug ) ) ), 245 245 'https://login.wordpress.org/' 246 246 ) … … 269 269 /* translators: %s: plugin/theme reviews URL */ 270 270 __( '<a href="%s">Click here</a> to see all reviews.', 'wporg-forums' ), 271 esc_url( sprintf( '//wordpress.org/support/%s/%s/reviews/', $this->compat, $this->slug ) )271 esc_url( sprintf( home_url( '/%s/%s/reviews/' ), $this->compat, $this->slug ) ) 272 272 ); 273 273 echo "</p>\n"; … … 332 332 add_query_arg( 333 333 'redirect_to', 334 urlencode( esc_url_raw( sprintf( 'https://wordpress.org/support/%s/%s/reviews/', $this->compat, $this->slug ) ) ),334 urlencode( esc_url_raw( sprintf( home_url( '/%s/%s/reviews/' ), $this->compat, $this->slug ) ) ), 335 335 'https://login.wordpress.org/' 336 336 ) … … 381 381 <p><?php _e( 'When posting a review, follow these guidelines:', 'wporg-forums' ); ?></p> 382 382 <ul> 383 <li><?php printf( $report, esc_url( sprintf( 'https://wordpress.org/support/%s/%s/', $this->compat, $this->slug ) ) ); ?></li>383 <li><?php printf( $report, esc_url( sprintf( home_url( '/%s/%s/' ), $this->compat, $this->slug ) ) ); ?></li> 384 384 <li><?php echo esc_html( $rate ); ?></li> 385 385 <li><?php esc_html_e( 'Please provide as much detail as you can to justify your rating and to help others.', 'wporg-forums' ); ?></li>
Note: See TracChangeset
for help on using the changeset viewer.