Skip to:
Content

bbPress.org

Changeset 6586


Ignore:
Timestamp:
06/19/2017 06:33:55 AM (7 years ago)
Author:
johnjamesjacoby
Message:

404: Use ! empty() over isset() to only account for true values in bbp_is_404.

This fixes broken /edit/ theme-side URLs, that will redirect otherwise.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r6583 r6586  
    10051005 * Sends notification emails for new replies to subscribed topics
    10061006 *
    1007  * Gets new post's ID and check if there are subscribed users to that topic, and
     1007 * Gets new post ID and check if there are subscribed users to that topic, and
    10081008 * if there are, send notifications
    10091009 *
     
    10121012 * that limit the number of addresses in a BCC field (often to around 500.) In
    10131013 * those cases, we recommend unhooking this function and creating your own
    1014  * custom emailer script.
     1014 * custom email script.
    10151015 *
    10161016 * @since 2.6.0 bbPress (r5413)
     
    11541154 * Sends notification emails for new topics to subscribed forums
    11551155 *
    1156  * Gets new post's ID and check if there are subscribed users to that forum, and
     1156 * Gets new post ID and check if there are subscribed users to that forum, and
    11571157 * if there are, send notifications
    11581158 *
     
    11611161 * that limit the number of addresses in a BCC field (often to around 500.) In
    11621162 * those cases, we recommend unhooking this function and creating your own
    1163  * custom emailer script.
     1163 * custom email script.
    11641164 *
    11651165 * @since 2.5.0 bbPress (r5156)
     
    20932093
    20942094    // Custom 404 handler is set, so set posts to empty array to avoid 2 queries
    2095     if ( isset( $wp_query->bbp_is_404 ) ) {
     2095    if ( ! empty( $wp_query->bbp_is_404 ) ) {
    20962096        $posts = array();
    20972097    }
Note: See TracChangeset for help on using the changeset viewer.