Skip to content

Commit 1d4c264

Browse files
committed
Update class-language-handler.php
1 parent c0d9592 commit 1d4c264

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

includes/frontend/class-language-handler.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ public static function load_plugin_textdomain() {
5050
* @return \WP_Post[] Updated array of WP_Post objects.
5151
*/
5252
public static function translate_ids( $results ) {
53-
global $post;
53+
54+
if ( empty( $results ) ) {
55+
return $results;
56+
}
5457

5558
$processed_ids = array();
5659
$processed_results = array();

0 commit comments

Comments
 (0)