Skip to content

Commit a666ab7

Browse files
committed
Fix method call of bcc_wpml_get_source_post
1 parent 2a2c5bf commit a666ab7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/bcc-keep-translated-posts-status-same-as-original/bcc-keep-translated-posts-status-same-as-original.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function bcc_filter_on_wp_insert_post_data ( $data, $postarr ) {
5151
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) { return $data; }
5252
if ( wp_is_post_revision( $maybe_id ) ) { return $data; }
5353

54-
$source = bcc_wpml_get_source_post( $maybe_id );
54+
$source = $this->bcc_wpml_get_source_post( $maybe_id );
5555
if ( ! $source ) {
5656
// This is the source itself, or we can't find it — nothing to sync.
5757
return $data;
@@ -82,7 +82,7 @@ function bcc_action_wpml_translation_completed ( $translated_post_id ) {
8282
if ( isset($in_progress[$translated_post_id]) ) { return; }
8383
$in_progress[$translated_post_id] = true;
8484

85-
$source = bcc_wpml_get_source_post( $translated_post_id );
85+
$source = $this->bcc_wpml_get_source_post( $translated_post_id );
8686
if ( $source ) {
8787
$source_status = $source->post_status;
8888
$translated = get_post( $translated_post_id );

0 commit comments

Comments
 (0)