Skip to content
Permalink
Browse files

Fixed a misspelled method name.

  • Loading branch information...
michaeluno committed Jul 7, 2018
1 parent cf806f0 commit 37fd313c6fe61c8af21f13132f8f22de4901c7dc
@@ -30,7 +30,7 @@ public function __construct( $oFactory ) {
add_filter(
"validation_pre_" . $this->oFactory->oProp->sClassName,
array( $this, '_replyToValiateUserFormInputs' ),
array( $this, '_replyToValidateUserFormInputs' ),
10,
4
);
@@ -49,7 +49,7 @@ public function __construct( $oFactory ) {
* @internal
* @callback filter validation_pre_{class name}
*/
public function _replyToValiateUserFormInputs( $aInputs, $aRawInputs, $aOptions, $oFactory ) {
public function _replyToValidateUserFormInputs( $aInputs, $aRawInputs, $aOptions, $oFactory ) {
// No need to retrieve the default tab slug here because it is an embedded value that is already set in the previous page load.
$_sTabSlug = $this->getElement( $_POST, 'tab_slug', '' );
@@ -110,7 +110,8 @@ private function _getFiltered( $aInputs, $aRawInputs, $aStoredData, $aSubmitInfo
// Make sure it is an array as the value is modified through filters.
$_aInput = $this->getAsArray( $_aInput );
$_aInput = $this->_getInputByUnset( $_aInput );
// Drop input elements with the `save` argument of false.
$_aInput = $this->_getInputsUnset( $_aInput, $this->oFactory->oProp->sStructureType );
// If everything fine, return the filtered input data.
$this->_bHasFieldErrors = $this->oFactory->hasFieldError();
@@ -148,11 +149,13 @@ public function _replyToSetStatus( $aStatus ) {
* Removes elements whose 'save' argument is false.
* @return array
* @since 3.6.0
* @deprecated 3.8.17 Use `_getInputsUnset()`
*/
private function _getInputByUnset( array $aInputs ) {
AdminPageFramework_Debug::log( $aInputs );
$_sUnsetKey = '__unset_' . $this->oFactory->oProp->sStructureType;
if ( ! isset( $_POST[ $_sUnsetKey ] ) ) {
AdminPageFramework_Debug::log( '$_POST ' . $_sUnsetKey . ' is not set' );
return $aInputs;
}
@@ -168,6 +171,7 @@ private function _getInputByUnset( array $aInputs ) {
$_aDimensionalKeys
);
}
AdminPageFramework_Debug::log( $aInputs );
return $aInputs;
}

0 comments on commit 37fd313

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.