Skip to content

Commit c1312b1

Browse files
authored
Merge pull request #1010 from Codeinwp/fix/issue-1002
feat: use content tags in import fields
2 parents 0c83993 + 4d0c4b8 commit c1312b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

includes/admin/feedzy-rss-feeds-import.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,10 @@ public function feedzy_import_feed_options() {
367367
$import_translation_lang = get_post_meta( $post->ID, 'import_auto_translation_lang', true );
368368
// default values so that post is not created empty.
369369
if ( empty( $import_title ) ) {
370-
$import_title = '[#item_title]';
370+
$import_title = '[[{"value":"%5B%7B%22id%22%3A%22%22%2C%22tag%22%3A%22item_title%22%2C%22data%22%3A%7B%7D%7D%5D"}]]';
371371
}
372372
if ( empty( $import_content ) ) {
373-
$import_content = '[#item_content]';
373+
$import_content = '[[{"value":"%5B%7B%22id%22%3A%22%22%2C%22tag%22%3A%22item_content%22%2C%22data%22%3A%7B%7D%7D%5D"}]]';
374374
}
375375

376376
$import_link_author_admin = get_post_meta( $post->ID, 'import_link_author_admin', true );

includes/views/import-metabox-edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class="dashicons dashicons-arrow-down-alt2"></span>
436436
</div>
437437
<div class="fz-input-group-right fz-title-action-tags">
438438
<div class="dropdown">
439-
<button type="button" class="btn btn-outline-primary btn-add-fields dropdown-toggle" aria-haspopup="true" aria-expanded="false">
439+
<button type="button" class="btn btn-outline-primary btn-add-fields dropdown-toggle" aria-haspopup="true" aria-expanded="false">
440440
<?php esc_html_e( 'Insert Tag', 'feedzy-rss-feeds' ); ?> <span class="dashicons dashicons-plus-alt2"></span>
441441
</button>
442442
<div class="dropdown-menu dropdown-menu-right">

0 commit comments

Comments
 (0)