Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/10/2020 08:53:17 PM (4 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat: conditionally unhook adjacent posts.

This commit adds a new function that is used to conditionally unhook a WordPress core action, and is necessary to prevent debug notices from adjacent posts and Theme Compatibility making post_date a 0 value.

Props r-a-y. For 2.6.15, branches/2.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/actions.php

    r6923 r7072  
    434434add_action( 'bbp_template_redirect', 'bbp_check_topic_tag_edit',  10 );
    435435
     436// Must be after bbp_template_include_theme_compat
     437add_action( 'bbp_template_redirect', 'bbp_remove_adjacent_posts', 10 );
     438
    436439// Theme-side POST requests
    437440add_action( 'bbp_post_request', 'bbp_do_ajax',                1  );
Note: See TracChangeset for help on using the changeset viewer.