Changeset 9857 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php
- Timestamp:
- 05/13/2020 03:31:34 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php
r9041 r9857 74 74 */ 75 75 public function parse_query() { 76 global $wp; 77 76 78 $slug = get_query_var( 'wporg_plugin' ); 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_plugin'] ) ) { 82 $slug = $wp->query_vars['wporg_plugin']; 83 } else { 84 return; 85 } 79 86 } 80 87
Note: See TracChangeset
for help on using the changeset viewer.