Skip to content

Commit

Permalink
fix: testing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani committed Dec 27, 2024
1 parent ab2d02d commit c7d78fa
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 172 deletions.
2 changes: 1 addition & 1 deletion includes/layouts/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class="<?php echo $_tab === $active_tab ? esc_attr( 'active' ) : ''; ?>"><?php e

$feedzy_delete_days = isset( $settings['general']['feedzy-delete-days'] ) ? $settings['general']['feedzy-delete-days'] : 0;
$default_thumbnail_id = isset( $settings['general']['default-thumbnail-id'] ) ? $settings['general']['default-thumbnail-id'] : 0;
$mapped_categories = isset( $settings['general']['auto-categories'] ) ? $settings['general']['auto-categories'] : array(
$mapped_categories = isset( $settings['general']['auto-categories'] ) && ! empty( $settings['general']['auto-categories'] ) ? $settings['general']['auto-categories'] : array(
array(
'keywords' => '',
'category' => '',
Expand Down
14 changes: 14 additions & 0 deletions includes/views/import-metabox-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,20 @@ class="dashicons dashicons-arrow-down-alt2"></span>
);
?>
</div>
<div class="help-text pt-8">
<?php
// phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
echo wp_kses_post(
sprintf(
// translators: %1$s: magic tag, %2$s: opening anchor tag, %3$s: closing anchor tag
__( 'You can automatically assign categories with a magic tag %1$s by the keywords used in title. Configure it %2$s here%3$s .', 'feedzy-rss-feeds' ),
'<strong>[#auto_categories]</strong>',
'<a href="' . esc_url( get_admin_url( null, 'admin.php?page=feedzy-settings' ) ) . '" target="_blank">',
'</a>'
)
);
?>
</div>
</div>
</div>

Expand Down
Loading

0 comments on commit c7d78fa

Please sign in to comment.