Skip to content

Commit 24b7d18

Browse files
Fix phpunit testcase issue with WP 6.6
1 parent 92c625e commit 24b7d18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ private function run_job( $job, $max ) {
12431243
$import_translation_lang = get_post_meta( $job->ID, 'import_auto_translation_lang', true );
12441244
$max = $import_feed_limit;
12451245

1246-
if ( metadata_exists( $import_post_type, $job->ID, 'import_post_status' ) ) {
1246+
if ( metadata_exists( 'post', $job->ID, 'import_post_status' ) ) {
12471247
$import_post_status = get_post_meta( $job->ID, 'import_post_status', true );
12481248
} else {
12491249
add_post_meta( $job->ID, 'import_post_status', 'publish' );

0 commit comments

Comments
 (0)