Making WordPress.org

Changeset 4918


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

Support Forums: Fix a typo in [4721] that prevented "Edit Review" link from appearing in plugin/theme sidebar for non-keymasters.

Review is a topic, not a reply.

See #2199, #1977.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc
Files:
2 edited

Legend:

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

    r4917 r4918  
    105105
    106106        $create_label = '';
    107         if ( isset( $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_topic_form() ) {
    108108            $create_label = \WPORG_Ratings::get_user_rating( 'plugin', $this->slug(), get_current_user_id() ) ?
    109109                __( 'Edit Review', 'wporg-forums' ) :
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php

    r4917 r4918  
    100100
    101101        $create_label = '';
    102         if ( isset( $this->ratings ) && $this->ratings->is_rating_view() && bbp_current_user_can_access_create_reply_form() ) {
     102        if ( isset( $this->ratings ) && $this->ratings->is_rating_view() && bbp_current_user_can_access_create_topic_form() ) {
    103103            $create_label = \WPORG_Ratings::get_user_rating( 'theme', $this->slug(), get_current_user_id() ) ?
    104104                __( 'Edit Review', 'wporg-forums' ) :
Note: See TracChangeset for help on using the changeset viewer.