Changeset 9857 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php
- Timestamp:
- 05/13/2020 03:31:34 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php
r9041 r9857 74 74 */ 75 75 public function parse_query() { 76 global $wp; 77 76 78 $slug = get_query_var( 'wporg_theme' ); 77 79 if ( ! $slug ) { 78 return; 80 // bbPress feeds are bad and don't actually fill in globals. 81 if ( isset( $wp->query_vars['feed'] ) && ! empty( $wp->query_vars['wporg_theme'] ) ) { 82 $slug = $wp->query_vars['wporg_theme']; 83 } else { 84 return; 85 } 79 86 } 80 87 … … 88 95 status_header( 404 ); 89 96 return; 90 } else {91 $this->slug = $slug;92 $this->theme = $theme;93 $this->authors = $this->get_authors( $slug );94 $this->contributors = $this->get_contributors( $slug );95 $this->support_reps = $this->get_support_reps( $slug );96 97 } 98 99 $this->slug = $slug; 100 $this->theme = $theme; 101 $this->authors = $this->get_authors( $slug ); 102 $this->contributors = $this->get_contributors( $slug ); 103 $this->support_reps = $this->get_support_reps( $slug ); 97 104 } 98 105
Note: See TracChangeset
for help on using the changeset viewer.