We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6401f85 + 000ed6d commit 2d24aa3Copy full SHA for 2d24aa3
one_wp_feed_rss_monitor.php
@@ -3,7 +3,7 @@
3
/*
4
* Plugin Name: One WP Feed RSS Monitor
5
* Description: Monitor and auto-publish podcast episodes as wordpress posts
6
- * Version: 1.0.0
+ * Version: 1.0.1
7
* Author: Victor Andeloci
8
* Author URI: https://github.com/victorandeloci
9
*/
@@ -142,7 +142,7 @@ function one_wp_feed_rss_monitor_create_podcast_post($episode) {
142
'post_status' => 'publish',
143
'post_type' => 'post',
144
'post_date' => date('Y-m-d', strtotime($episode['pub_date'])),
145
- 'post_author' => 1,
+ 'post_author' => (get_current_user_id() ?? 1),
146
'meta_input' => array(
147
'episode_link' => $episode['link'],
148
'episode_mp3_url' => $episode['mp3_url'],
0 commit comments