We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb54059 commit 1d0b575Copy full SHA for 1d0b575
1 file changed
includes/ContentImport/ContentImporter.php
@@ -110,6 +110,14 @@ public function handle_import( array $data = array() ) {
110
return $data;
111
}
112
113
+ switch_to_blog( $source_blog_id );
114
+ $can_read = current_user_can( 'read_post', $source_post_id );
115
+ restore_current_blog();
116
+
117
+ if ( ! $can_read ) {
118
+ return $data;
119
+ }
120
121
$source_lang = MslsBlogCollection::get_blog_language( $source_blog_id );
122
$dest_blog_id = get_current_blog_id();
123
$dest_lang = MslsBlogCollection::get_blog_language( get_current_blog_id() );
0 commit comments