Merge pull request #5851 from BFTrick/abstract-settings-typos
Fixing Typos in Abstract Settings Class
This commit is contained in:
commit
0f7f3ee66a
|
@ -59,7 +59,7 @@ abstract class WC_Settings_API {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the form fields after they are initialized
|
* Get the form fields after they are initialized
|
||||||
*
|
*
|
||||||
* @return array of options
|
* @return array of options
|
||||||
*/
|
*/
|
||||||
public function get_form_fields() {
|
public function get_form_fields() {
|
||||||
|
@ -292,7 +292,7 @@ abstract class WC_Settings_API {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate Password Input HTML.
|
* Generate Price Input HTML.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param mixed $key
|
* @param mixed $key
|
||||||
|
@ -336,7 +336,7 @@ abstract class WC_Settings_API {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate Password Input HTML.
|
* Generate Decimal Input HTML.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param mixed $key
|
* @param mixed $key
|
||||||
|
@ -641,7 +641,7 @@ abstract class WC_Settings_API {
|
||||||
} elseif ( method_exists( $this, 'validate_' . $v['type'] . '_field' ) ) {
|
} elseif ( method_exists( $this, 'validate_' . $v['type'] . '_field' ) ) {
|
||||||
$field = $this->{'validate_' . $v['type'] . '_field'}( $k );
|
$field = $this->{'validate_' . $v['type'] . '_field'}( $k );
|
||||||
$this->sanitized_fields[ $k ] = $field;
|
$this->sanitized_fields[ $k ] = $field;
|
||||||
|
|
||||||
// Default to text
|
// Default to text
|
||||||
} else {
|
} else {
|
||||||
$field = $this->{'validate_text_field'}( $k );
|
$field = $this->{'validate_text_field'}( $k );
|
||||||
|
@ -671,6 +671,8 @@ abstract class WC_Settings_API {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate Text Field.
|
* Validate Text Field.
|
||||||
|
*
|
||||||
|
* Make sure the data is escaped correctly, etc.
|
||||||
*
|
*
|
||||||
* @param mixed $key
|
* @param mixed $key
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -686,6 +688,8 @@ abstract class WC_Settings_API {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate Price Field.
|
* Validate Price Field.
|
||||||
|
*
|
||||||
|
* Make sure the data is escaped correctly, etc.
|
||||||
*
|
*
|
||||||
* @param mixed $key
|
* @param mixed $key
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -701,10 +705,12 @@ abstract class WC_Settings_API {
|
||||||
}
|
}
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate Price Field.
|
* Validate Decimal Field.
|
||||||
|
*
|
||||||
|
* Make sure the data is escaped correctly, etc.
|
||||||
*
|
*
|
||||||
* @param mixed $key
|
* @param mixed $key
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -720,7 +726,7 @@ abstract class WC_Settings_API {
|
||||||
}
|
}
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate Password Field.
|
* Validate Password Field.
|
||||||
|
@ -810,4 +816,4 @@ abstract class WC_Settings_API {
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue