Skip to:
Content

bbPress.org

Ticket #3354: 3354_theme-compat.php

File 3354_theme-compat.php, 1.8 KB (added by GDragoN, 7 years ago)
Line 
1Index: theme-compat.php
2===================================================================
3--- theme-compat.php (revision 7073)
4+++ theme-compat.php (working copy)
5@@ -582,7 +582,7 @@
6 'ID' => bbp_get_forum_id(),
7 'post_title' => bbp_get_forum_title(),
8 'post_author' => bbp_get_forum_author_id(),
9- 'post_date' => 0,
10+ 'post_date' => get_post_time('Y-m-d H:i:s', false, bbp_get_forum_id()),
11 'post_content' => $bbp_shortcodes->display_forum_form(),
12 'post_type' => bbp_get_forum_post_type(),
13 'post_status' => bbp_get_forum_visibility(),
14@@ -600,7 +600,7 @@
15 'ID' => bbp_get_forum_id(),
16 'post_title' => bbp_get_forum_title(),
17 'post_author' => bbp_get_forum_author_id(),
18- 'post_date' => 0,
19+ 'post_date' => get_post_time('Y-m-d H:i:s', false, bbp_get_forum_id()),
20 'post_content' => $bbp_shortcodes->display_forum( array( 'id' => bbp_get_forum_id() ) ),
21 'post_type' => bbp_get_forum_post_type(),
22 'post_status' => bbp_get_forum_visibility(),
23@@ -675,7 +675,7 @@
24 'ID' => bbp_get_topic_id(),
25 'post_title' => bbp_get_topic_title(),
26 'post_author' => bbp_get_topic_author_id(),
27- 'post_date' => 0,
28+ 'post_date' => get_post_time('Y-m-d H:i:s', false, bbp_get_topic_id()),
29 'post_content' => $new_content,
30 'post_type' => bbp_get_topic_post_type(),
31 'post_status' => bbp_get_topic_status(),
32@@ -725,7 +725,7 @@
33 'ID' => bbp_get_reply_id(),
34 'post_title' => bbp_get_reply_title(),
35 'post_author' => bbp_get_reply_author_id(),
36- 'post_date' => 0,
37+ 'post_date' => get_post_time('Y-m-d H:i:s', false, bbp_get_reply_id()),
38 'post_content' => $new_content,
39 'post_type' => bbp_get_reply_post_type(),
40 'post_status' => bbp_get_reply_status(),