Skip to content

Add condition for locations in geo-uniques#2

Open
vishalkakadiya wants to merge 1 commit intosvn2github:masterfrom
vishalkakadiya:feature/fix-geo-uniques
Open

Add condition for locations in geo-uniques#2
vishalkakadiya wants to merge 1 commit intosvn2github:masterfrom
vishalkakadiya:feature/fix-geo-uniques

Conversation

@vishalkakadiya
Copy link

Needs one conditional check on $checks variable because it's giving syntax error if the user doesn't define country by wpcom_geo_add_location() function.

Previous: if ( empty( %s ) ) { return "%s"; } elseif else { return "%s"; }

After my patch:
a. If user added that country then: if ( empty( %s ) ) { return "%s"; } elseif ( empty( %s ) ) { return "%s"; } else { return "%s"; }

b. If used doesn't added default country then: if ( empty( %s ) ) { return "%s"; } else { return "%s"; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments