Making WordPress.org

Changeset 5618


Ignore:
Timestamp:
07/03/2017 10:48:46 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Make wporg_support_get_user_review_count() always return an integer.

See #2772.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    r5617 r5618  
    227227    $user_id = bbp_get_user_id( $user_id );
    228228    if ( empty( $user_id ) ) {
    229         return false;
     229        return 0;
    230230    }
    231231
    232232    if ( ! class_exists( 'WordPressdotorg\Forums\Plugin' ) ) {
    233         return false;
     233        return 0;
    234234    }
    235235
     
    239239            WHERE post_type = 'topic'
    240240                AND post_status IN ( 'publish', 'closed' )
    241                 AND post_parent = %s
     241                AND post_parent = %d
    242242                AND post_author = %d",
    243243        WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID,
Note: See TracChangeset for help on using the changeset viewer.