Completed
Push — develop ( a5558b...41aed1 )
by Zack
04:31
created
includes/plugin-and-theme-hooks/class-gravityview-theme-hooks-wpml.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
 		add_filter( 'icl_ls_languages', array( $this, 'wpml_ls_filter' ) );
64 64
 
65
-		add_filter( 'gravityview_directory_link', array( $this, 'filter_gravityview_back_link') );
65
+		add_filter( 'gravityview_directory_link', array( $this, 'filter_gravityview_back_link' ) );
66 66
 	}
67 67
 
68 68
 	/**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
 			$this->remove_url_hooks();
153 153
 
154
-			if( $translations ) {
154
+			if ( $translations ) {
155 155
 				foreach ( $languages as $lang_code => $language ) {
156 156
 
157 157
 					$lang_post_id = $translations[ $lang_code ]->element_id;
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 							break;
185 185
 					}
186 186
 
187
-					$languages[ $lang_code ]['url'] = $entry_link;
187
+					$languages[ $lang_code ][ 'url' ] = $entry_link;
188 188
 				}
189 189
 			}
190 190
 
Please login to merge, or discard this patch.