/** * WordPress wp_head mess CleanUp constructor * * @param array $configuration cleanup configuration * * @see Admin::mergeConfigurationWithDefault(); * @since 1.2.0 */ public function __construct($configuration) { parent::__construct($configuration); }
public function __construct(PostSanitizer $sanitizer) { $minFilterElements = 3; $maxFilterElements = 3; $maxCCA = ['compositeStr' => PHP_INT_MAX, 'listBtn' => 4, 'token' => 32]; $phpFFA = ['compositeStr' => ['filter' => FILTER_SANITIZE_STRING, 'flags' => FILTER_REQUIRE_SCALAR | FILTER_FLAG_NO_ENCODE_QUOTES | FILTER_FLAG_STRIP_HIGH], 'listBtn' => ['filter' => FILTER_SANITIZE_STRING, 'flags' => FILTER_REQUIRE_SCALAR | FILTER_FLAG_NO_ENCODE_QUOTES | FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH], 'token' => ['filter' => FILTER_SANITIZE_STRING, 'flags' => FILTER_REQUIRE_SCALAR | FILTER_FLAG_NO_ENCODE_QUOTES | FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH]]; $transitoryInputs = NULL; //Where "transitory" means inputs may, or may not, succeed upon form submission. parent::__construct($sanitizer, $minFilterElements, $maxFilterElements, $maxCCA, $phpFFA, $transitoryInputs); }