Merge pull request #5031 from BFTrick/uk-counties
Returning False Instead of Empty Array for Countries Without States
This commit is contained in:
commit
56c1ce4bd9
|
@ -547,7 +547,7 @@ class WC_Countries {
|
||||||
* @return array of states
|
* @return array of states
|
||||||
*/
|
*/
|
||||||
public function get_states( $cc ) {
|
public function get_states( $cc ) {
|
||||||
return ( isset( $this->states[ $cc ] ) ) ? $this->states[ $cc ] : array();
|
return ( isset( $this->states[ $cc ] ) ) ? $this->states[ $cc ] : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue