Making WordPress.org


Ignore:
Timestamp:
05/13/2020 03:31:34 AM (21 months ago)
Author:
dd32
Message:

Support Forums: Reviews: Include the rating in plugin/theme review feeds.

See #1611.

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  
    7474     */
    7575    public function parse_query() {
     76        global $wp;
     77
    7678        $slug = get_query_var( 'wporg_plugin' );
    7779        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            }
    7986        }
    8087
Note: See TracChangeset for help on using the changeset viewer.