Skip to content

Commit

Permalink
Fix incorrectly initialized variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Jun 17, 2022
1 parent 3ac36b9 commit e651a72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions includes/class-geo-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,7 @@ public static function has_location( $object = null ) {
* @since 1.0.0
*/
public static function get_geodata( $object = null, $full = true ) {
$geodata = false;
if ( ! $object ) {
$object = get_post();
}
Expand Down
2 changes: 1 addition & 1 deletion templates/loc-user-metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
<span class="description"><?php esc_attr_e( 'Address', 'simple-location' ); ?></span>
</td>
</tr>
<?php Loc_Metabox::geo_public_user( $geodata['visibility'] ); // phpcs:ignore ?>
<?php Loc_Metabox::geo_public_user( ifset( $geodata['visibility'] ) ); // phpcs:ignore ?>
</table>
</div>

0 comments on commit e651a72

Please sign in to comment.