Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JoryHogeveen committed May 4, 2016
1 parent e68c15b commit 86f79ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/fields/pick.php
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,7 @@ public function get_object_data ( $object_params = null ) {

if ( $translated ) {
$object_id = 0; // default
if ( function_exists( 'PLL' ) && isset( PPL()->model ) && method_exists( PLL()->model, 'get_translation' ) ) {
if ( function_exists( 'PLL' ) && isset( PLL()->model ) && method_exists( PLL()->model, 'get_translation' ) ) {
// Polylang 1.8 and newer
$object_id = PLL()->model->get_translation( $object, $result[ $search_data->field_id ], $current_language );
} elseif ( is_object( $polylang ) && isset( $polylang->model ) && method_exists( $polylang->model, 'get_translation' ) ) {
Expand Down

0 comments on commit 86f79ec

Please sign in to comment.