Improve help tip docblock and remove space

This commit is contained in:
Shiva Poudel 2015-11-10 07:13:53 +05:45
parent 9a926aef4f
commit 33ad23f371
2 changed files with 3 additions and 4 deletions

View File

@ -378,13 +378,12 @@ function wc_save_order_items( $order_id, $items ) {
}
/**
* Add help tips.
* Display a WooCommerce help tip.
*
* @since 2.5.0
*
* @param string $tip Help tip text
* @param bool $allow_html Allow sanitized HTML if true or escape
* @param string $tip Help tip text
* @param bool $allow_html Allow sanitized HTML if true or escape
* @return string
*/
function wc_help_tip( $tip, $allow_html = false ) {

View File

@ -1606,7 +1606,7 @@ class WC_Geo_IP {
*/
public function geoip_country_code_by_addr_v6( $addr ) {
$country_id = $this->geoip_country_id_by_addr_v6( $addr );
if ( $country_id !== false && isset( $this->GEOIP_COUNTRY_CODES[ $country_id ] ) ) {
if ( $country_id !== false && isset( $this->GEOIP_COUNTRY_CODES[ $country_id ] ) ) {
return $this->GEOIP_COUNTRY_CODES[ $country_id ];
}