packages/kirki-framework/control-repeater/src/Settings/Repeater.php
public function sanitize_repeater_setting( $value ) {
		if ( ! is_array( $value ) ) {
			$value = json_decode( urldecode( $value ) );
		}
		if ( empty( $value ) || ! is_array( $value ) ) {
			$value = [];
		}

		// Make sure that every row is an array, not an object.
		foreach ( $value as $key => $val ) {
			$value[ $key ] = (array) $val;
			if ( empty( $val ) ) {
				unset( $value[ $key ] );
			}
		}

		// Reindex array.
		if ( is_array( $value ) ) {
			$value = array_values( $value );
		}

		return $value;
	}
public function sanitize_repeater_setting( $value ) {
		if ( ! is_array( $value ) ) {
			$value = json_decode( urldecode( $value ) );
		}
		if ( empty( $value ) || ! is_array( $value ) ) {
			$value = [];
		}

		// Make sure that every row is an array, not an object.
		foreach ( $value as $key => $val ) {
			$value[ $key ] = (array) $val;
			if ( empty( $val ) ) {
				unset( $value[ $key ] );
			}
		}

		// Reindex array.
		if ( is_array( $value ) ) {
			$value = array_values( $value );
		}

		return $value;
	}
public function sanitize_repeater_setting ( $ value ) { if ( ! is_array ( $ value ) ) { $ value = json_decode ( urldecode ( $ value ) ) ; } if ( empty ( $ value ) || ! is_array ( $ value ) ) { $ value = [ ] ; } // Make sure that every row is an array, not an object. foreach ( $ value as $ key => $ val ) { $ value [ $ key ] = ( array ) $ val ; if ( empty ( $ val ) ) { unset ( $ value [ $ key ] ) ; } } // Reindex array. if ( is_array ( $ value ) ) { $ value = array_values ( $ value ) ; } return $ value ; }
Convert the JSON encoded setting coming from Customizer to an Array.

@access public
@since 1.0
@param string $value URL Encoded JSON Value.
@return array
Convert the JSON encoded setting coming from Customizer to an Array .