Changeset 8617
- Timestamp:
- 04/10/2019 04:19:41 AM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc
- Files:
-
- 3 edited
-
class-directory-compat.php (modified) (1 diff)
-
class-plugin-directory-compat.php (modified) (1 diff)
-
class-theme-directory-compat.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php
r8213 r8617 456 456 $paged_rule = $paged_slug . '/?([0-9]{1,})/?$'; 457 457 458 // Add base rule, so that /support/$compat_slug/ doesn't redirect to a random topic. 459 add_rewrite_rule( $this->compat() . '/?$', 'index.php?' . $view_id . '=' . $review_id . '&' . $root_var . '=_redirect_', $priority ); 460 458 461 // Add reviews view rewrite rules. 459 462 add_rewrite_rule( $reviews_rule . $base_rule, 'index.php?' . $view_id . '=' . $review_id . '&' . $root_var . '=$matches[1]', $priority ); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php
r8033 r8617 73 73 if ( ! $slug ) { 74 74 return; 75 } 76 77 if ( '_redirect_' == $slug ) { 78 wp_safe_redirect( 'https://wordpress.org/plugins/', 301 ); 79 exit; 75 80 } 76 81 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php
r8033 r8617 75 75 } 76 76 77 if ( '_redirect_' == $slug ) { 78 wp_safe_redirect( 'https://wordpress.org/themes/', 301 ); 79 exit; 80 } 81 77 82 $theme = $this->get_object( $slug ); 78 83 if ( ! $theme ) {
Note: See TracChangeset
for help on using the changeset viewer.