WordPress.org

Making WordPress.org

Changeset 5931


Ignore:
Timestamp:
09/16/2017 09:41:12 AM (10 months ago)
Author:
SergeyBiryukov
Message:

Support Forums: After [5925], still allow non-moderators to edit their reviews at any time.

File:
1 edited

Legend:

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

    r5925 r5931  
    131131            case 'edit_reply':
    132132                $post = get_post( $args[0] );
     133
     134                // Reviews can be edited at any time.
     135                if ( 'topic' === $post->post_type && Plugin::REVIEWS_FORUM_ID == $post->post_parent ) {
     136                    break;
     137                }
    133138
    134139                if (
Note: See TracChangeset for help on using the changeset viewer.