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:
parent
a75839d5a4
commit
1b69f3b37a
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue