Changeset 5061
- Timestamp:
- 03/03/2017 07:10:34 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php
r5059 r5061 87 87 switch ( $r ) { 88 88 case 'rss' : 89 $url = sprintf( 'https://wordpress.org/support/%s/%s/feed/',89 $url = sprintf( home_url( '/%s/%s/feed/' ), 90 90 $this->compat(), 91 91 sanitize_key( $slug[0] ) ); 92 92 break; 93 93 case 'reviews' : 94 $url = sprintf( 'https://wordpress.org/support/%s/%s/reviews/',94 $url = sprintf( home_url( '/%s/%s/reviews/' ), 95 95 $this->compat(), 96 96 sanitize_key( $slug[0] ) ); 97 97 break; 98 98 case 'reviews_rss' : 99 $url = sprintf( 'https://wordpress.org/support/%s/%s/reviews/feed/',99 $url = sprintf( home_url( '/%s/%s/reviews/feed/' ), 100 100 $this->compat(), 101 101 sanitize_key( $slug[0] ) ); … … 735 735 if ( $this->taxonomy() == $taxonomy ) { 736 736 $paged = get_query_var( 'paged' ) > 1 ? 'page/' . absint( get_query_var( 'paged' ) ) . '/' : ''; 737 $termlink = sprintf( 'https://wordpress.org/support/%s/%s/%s', $this->compat(), $term->slug, $paged );737 $termlink = sprintf( home_url( '/%s/%s/%s' ), $this->compat(), $term->slug, $paged ); 738 738 } 739 739 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php
r5059 r5061 95 95 $plugin = sprintf( '<a href="//wordpress.org/plugins/%s/">%s</a>', esc_attr( $this->slug() ), esc_html( $this->plugin->post_title ) ); 96 96 $faq = sprintf( '<a href="//wordpress.org/plugins/%s/faq/">%s</a>', esc_attr( $this->slug() ), __( 'Frequently Asked Questions', 'wporg-forums' ) ); 97 $support = sprintf( '<a href=" //wordpress.org/support/plugin/%s/">%s</a>', esc_attr( $this->slug()), __( 'Support Threads', 'wporg-forums' ) );98 $active = sprintf( '<a href=" //wordpress.org/support/plugin/%s/active/">%s</a>', esc_attr( $this->slug()), __( 'Active Topics', 'wporg-forums' ) );99 $unresolved = sprintf( '<a href=" //wordpress.org/support/plugin/%s/unresolved/">%s</a>', esc_attr( $this->slug()), __( 'Unresolved Topics', 'wporg-forums' ) );100 $reviews = sprintf( '<a href=" //wordpress.org/support/plugin/%s/reviews/">%s</a>', esc_attr( $this->slug()), __( 'Reviews', 'wporg-forums' ) );97 $support = sprintf( '<a href="%s">%s</a>', home_url( '/plugin/' . esc_attr( $this->slug() ) . '/' ), __( 'Support Threads', 'wporg-forums' ) ); 98 $active = sprintf( '<a href="%s">%s</a>', home_url( '/plugin/' . esc_attr( $this->slug() ) . '/active/' ), __( 'Active Topics', 'wporg-forums' ) ); 99 $unresolved = sprintf( '<a href="%s">%s</a>', home_url( '/plugin/' . esc_attr( $this->slug() ) . '/unresolved/' ), __( 'Unresolved Topics', 'wporg-forums' ) ); 100 $reviews = sprintf( '<a href="%s">%s</a>', home_url( '/plugin/' . esc_attr( $this->slug() ) . '/reviews/' ), __( 'Reviews', 'wporg-forums' ) ); 101 101 $create = ''; 102 102 -
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> -
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php
r4894 r5061 458 458 } 459 459 460 $url = 'https://wordpress.org/support/' . $type . '/' . $obj->post_name . '/';460 $url = home_url( '/' . $type . '/' . $obj->post_name . '/' ); 461 461 if ( $forum_id === Plugin::REVIEWS_FORUM_ID ) { 462 462 $url .= 'reviews'; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php
r5059 r5061 90 90 public function do_topic_sidebar() { 91 91 $theme = sprintf( '<a href="//wordpress.org/themes/%s/">%s</a>', esc_attr( $this->slug() ), esc_html( $this->theme->post_title ) ); 92 $support = sprintf( '<a href=" //wordpress.org/support/theme/%s/">%s</a>', esc_attr( $this->slug()), __( 'Support Threads', 'wporg-forums' ) );93 $active = sprintf( '<a href=" //wordpress.org/support/theme/%s/active/">%s</a>', esc_attr( $this->slug()), __( 'Active Topics', 'wporg-forums' ) );94 $unresolved = sprintf( '<a href=" //wordpress.org/support/theme/%s/unresolved/">%s</a>', esc_attr( $this->slug()), __( 'Unresolved Topics', 'wporg-forums' ) );95 $reviews = sprintf( '<a href=" //wordpress.org/support/theme/%s/reviews/">%s</a>', esc_attr( $this->slug()), __( 'Reviews', 'wporg-forums' ) );92 $support = sprintf( '<a href="%s">%s</a>', home_url( '/theme/' . esc_attr( $this->slug() ) . '/' ), __( 'Support Threads', 'wporg-forums' ) ); 93 $active = sprintf( '<a href="%s">%s</a>', home_url( '/theme/' . esc_attr( $this->slug() ) . '/active/' ), __( 'Active Topics', 'wporg-forums' ) ); 94 $unresolved = sprintf( '<a href="%s">%s</a>', home_url( '/theme/' . esc_attr( $this->slug() ) . '/unresolved/' ), __( 'Unresolved Topics', 'wporg-forums' ) ); 95 $reviews = sprintf( '<a href="%s">%s</a>', home_url( '/theme/' . esc_attr( $this->slug() ) . '/reviews/' ), __( 'Reviews', 'wporg-forums' ) ); 96 96 $create = ''; 97 97
Note: See TracChangeset
for help on using the changeset viewer.