Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/01/2025 04:22:22 PM (8 months ago)
Author:
johnjamesjacoby
Message:

Theme Compat: remove reference to non-existent function.

This change removes a function call to display_reply_index() which does not exist, and replaces it with an empty string.

This condition will not fire under normal circumstances as the Reply post type does not support archives by default. The chances of this fatal error happening are near zero, but we can easily avoid it fully by returning an empty string instead.

Props sirlouen.

In trunk, for 2.7.

Fixes #3616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/theme-compat.php

    r7167 r7329  
    705705            'post_author'    => 0,
    706706            'post_date'      => bbp_get_empty_datetime(),
    707             'post_content'   => $bbp_shortcodes->display_reply_index(),
     707            'post_content'   => '',
    708708            'post_type'      => bbp_get_reply_post_type(),
    709709            'post_status'    => bbp_get_public_status_id(),
Note: See TracChangeset for help on using the changeset viewer.