Skip to content

Commit

Permalink
Break get_as_fields when 'from' encountered, per #267
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Bates committed Apr 6, 2018
1 parent af8240f commit a3575b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-includes/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -1867,6 +1867,9 @@ function get_as_fields($query)
if ( strtolower($tok[$i]) === 'as' ) {
$arr[] = $tok[($i + 1)];
}
if ( strtolower($tok[$i]) === 'from' ) {
break;
}
}
return $arr;
}
Expand Down

0 comments on commit a3575b0

Please sign in to comment.