Making WordPress.org

Ticket #2529: meta-2529.patch

File meta-2529.patch, 782 bytes (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-moderation/inc/class-plugin.php

     
    9292         */
    9393        public function posts_where( $where ) {
    9494                global $wpdb;
    95                 if ( bbp_is_single_forum() || bbp_is_single_topic() ) {
     95                if ( did_action( 'wp' ) && ( bbp_is_single_forum() || bbp_is_single_topic() ) ) {
    9696                        if (
    9797                                strpos( $where, $wpdb->prepare( "$wpdb->posts.post_type = %s", bbp_get_topic_post_type() ) ) !== false
    9898                        ||