Skip to content

Commit 4c71d54

Browse files
authored
Merge pull request creativecommons#415 from creativecommons/fix-members-list
(Gravity Forms) can't call get_countries statically anymore
2 parents 9fbdec0 + f6efa31 commit 4c71d54

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

themes/cc-commoners-2019/template-members.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@
4848
<div class="entry-content closed" id="search-members-advanced">
4949
<div class="grid-x grid-padding-x">
5050
<div class="cell auto">
51-
<?php
52-
$countries = GF_Field_Address::get_countries();
51+
<?php
52+
$field_address = new GF_Field_Address();
53+
$countries = $field_address->get_countries();
5354
echo '<select name="country" id="country">';
5455
echo '<option value="">Select country</option>';
5556
foreach ( $countries as $country ) {

0 commit comments

Comments
 (0)