Skip to content

Commit c7d78fa

Browse files
committed
fix: testing issues
1 parent ab2d02d commit c7d78fa

File tree

3 files changed

+227
-172
lines changed

3 files changed

+227
-172
lines changed

includes/layouts/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class="<?php echo $_tab === $active_tab ? esc_attr( 'active' ) : ''; ?>"><?php e
108108

109109
$feedzy_delete_days = isset( $settings['general']['feedzy-delete-days'] ) ? $settings['general']['feedzy-delete-days'] : 0;
110110
$default_thumbnail_id = isset( $settings['general']['default-thumbnail-id'] ) ? $settings['general']['default-thumbnail-id'] : 0;
111-
$mapped_categories = isset( $settings['general']['auto-categories'] ) ? $settings['general']['auto-categories'] : array(
111+
$mapped_categories = isset( $settings['general']['auto-categories'] ) && ! empty( $settings['general']['auto-categories'] ) ? $settings['general']['auto-categories'] : array(
112112
array(
113113
'keywords' => '',
114114
'category' => '',

includes/views/import-metabox-edit.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,20 @@ class="dashicons dashicons-arrow-down-alt2"></span>
215215
);
216216
?>
217217
</div>
218+
<div class="help-text pt-8">
219+
<?php
220+
// phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
221+
echo wp_kses_post(
222+
sprintf(
223+
// translators: %1$s: magic tag, %2$s: opening anchor tag, %3$s: closing anchor tag
224+
__( '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' ),
225+
'<strong>[#auto_categories]</strong>',
226+
'<a href="' . esc_url( get_admin_url( null, 'admin.php?page=feedzy-settings' ) ) . '" target="_blank">',
227+
'</a>'
228+
)
229+
);
230+
?>
231+
</div>
218232
</div>
219233
</div>
220234

0 commit comments

Comments
 (0)