} if ( is_array( $popular_importers ) ) { // If the data was received as translated, return it as-is.
if ( $popular_importers['translated'
] ) { return $popular_importers['importers'
];
} foreach ( $popular_importers['importers'
] as &
$importer ) { // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
$importer['description'
] =
translate( $importer['description'
] );
if ( 'WordPress' !==
$importer['name'
] ) { // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
$importer['name'
] =
translate( $importer['name'
] );
} } return $popular_importers['importers'
];
} return array
( // slug => name, description, plugin slug, and register_importer() slug.
'blogger' => array
(