Permalink
Browse files

New filter wflux_range_core

‘wflux_doc_type’ default value is (currently) ‘transitional’ which defines the HTML document type in the admin Advanced Wonderflux options.

Note - must supply as string - accepted values are:
- transitional
- strict
- frameset
- 1.1
- 1.1basic
- html5
- XHTML/RDFa
  • Loading branch information...
Jonnyauk committed Sep 4, 2017
1 parent b7d51c0 commit f47934d622d3cd2799ef19d36ff18c1e36d2924a
Showing with 2 additions and 0 deletions.
  1. +2 −0 wf-includes/wf-helper-functions.php
@@ -61,6 +61,8 @@ function __construct() {
// Validate
$wfx_doc_type_out = 'transitional';
$wfx_doc_type_accept = array('transitional','strict','frameset','1.1','1.1basic','html5','XHTML/RDFa');
// Allow filtering
$this->wfx_doc_type = apply_filters( 'wflux_doc_type', $this->wfx_doc_type );
if ( in_array($this->wfx_doc_type,$wfx_doc_type_accept) ) { $wfx_doc_type_out = $this->wfx_doc_type; }
$this->wfx_doc_type = $wfx_doc_type_out;

0 comments on commit f47934d

Please sign in to comment.