Making WordPress.org


Ignore:
Timestamp:
02/18/2017 03:02:24 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Avoid a PHP notice in plugin/theme compat if WPORG_Ratings does not exist.

File:
1 edited

Legend:

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

    r4916 r4917  
    105105
    106106        $create_label = '';
    107         if ( $this->ratings && $this->ratings->is_rating_view() && bbp_current_user_can_access_create_reply_form() ) {
     107        if ( isset( $this->ratings ) && $this->ratings->is_rating_view() && bbp_current_user_can_access_create_reply_form() ) {
    108108            $create_label = \WPORG_Ratings::get_user_rating( 'plugin', $this->slug(), get_current_user_id() ) ?
    109109                __( 'Edit Review', 'wporg-forums' ) :
Note: See TracChangeset for help on using the changeset viewer.