Skip to content

Commit

Permalink
Merge pull request #2 from victorandeloci/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
victorandeloci authored Aug 1, 2023
2 parents 2d24aa3 + 3b5490f commit 28302fc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions one_wp_feed_rss_monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Plugin Name: One WP Feed RSS Monitor
* Description: Monitor and auto-publish podcast episodes as wordpress posts
* Version: 1.0.1
* Version: 1.0.2
* Author: Victor Andeloci
* Author URI: https://github.com/victorandeloci
*/
Expand Down Expand Up @@ -33,7 +33,7 @@ function one_wp_feed_rss_monitor_page() {
'one_wp_feed_rss_monitor_main_js',
plugin_dir_url(__FILE__) . 'js/main.js',
[],
'1.0.0',
'1.0.2',
true
);

Expand All @@ -43,7 +43,9 @@ function one_wp_feed_rss_monitor_page() {
'ids_to_terms' => get_option('one_wp_feed_rss_monitor_ids_to_terms', ''),
];

$categories = get_categories();
$categories = get_categories([
'hide_empty' => false
]);

// cron job exec
include_once('templates/cron_exec.php');
Expand Down Expand Up @@ -123,7 +125,7 @@ function one_wp_feed_rss_monitor_get_podcast_episodes($feed_url) {
$tags_str = substr($description, $tags_start, $tags_end - $tags_start);
$tags = explode(' ', $tags_str);
foreach ($tags as $tag) {
$episode['tags'][] = str_replace('#', '', $tag);
$episode['tags'][] = str_replace('ç', 'c', str_replace('ã', 'a', str_replace('#', '', $tag)));
}
}

Expand Down

0 comments on commit 28302fc

Please sign in to comment.