2
0
Fork 0
mirror of https://github.com/discourse/wp-discourse.git synced 2025-10-03 08:59:21 +08:00

add message on published posts

git-svn-id: http://plugins.svn.wordpress.org/wp-discourse/trunk@1449461 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
scossar 2016-07-05 18:51:23 +00:00
parent a75839d5a4
commit 1b69f3b37a

View file

@ -127,7 +127,10 @@ class Discourse {
$discourse_id = get_post_meta($postid, 'discourse_post_id', true);
$options = get_option('discourse');
$post = get_post($post_id);


$baked = apply_filters('the_content', $raw);
$baked = "<small>Originally published at: " . get_permalink($postid) . "</small><br>" . $baked;

$data = array(
'wp-id' => $postid,