Making WordPress.org


Ignore:
Timestamp:
07/12/2019 10:33:29 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Disallow new reviews on closed plugins.

Props Ipstenu, SergeyBiryukov.
Fixes #4603.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php

    r8638 r9041  
    1313    abstract protected function slug();
    1414    abstract protected function title();
     15    abstract protected function status();
    1516    abstract protected function forum_id();
    1617    abstract protected function query_var();
     
    706707            $retval = bbp_current_user_can_publish_topics();
    707708        }
     709
     710        if ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) {
     711            if ( 'plugin' === $this->compat() && 'publish' !== $this->status() ) {
     712                $retval = false;
     713            }
     714        }
     715
    708716        return $retval;
    709717    }
Note: See TracChangeset for help on using the changeset viewer.