Skip to content

Commit

Permalink
Merge pull request #5 from udx/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
SoSeductive authored Nov 7, 2023
2 parents ab2e50a + 347105e commit 5ad20c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion lib/classes/class-customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ public function prepare_setting( $i ) {
switch( $i[ 'control' ] ) {
case 'text':
/** Not sure how to use this yet */
continue;
break;
case 'font':
$rule[ 'style' ] = 'font';
Expand Down
12 changes: 6 additions & 6 deletions lib/classes/class-scaffold.php
Original file line number Diff line number Diff line change
Expand Up @@ -1172,23 +1172,23 @@ public function _redirect( $query_vars ) {
$wp_query->is_asset = true;

if( isset( $_data ) && get_query_var( 'asset_type' ) === 'script' ) {
$this->_serve_public( 'script', get_query_var( 'asset_slug' ), $_data );
$this->_serve_public( get_query_var( 'asset_slug' ), 'script', $_data );
}

if( isset( $_data ) && get_query_var( 'asset_type' ) === 'font' ) {
$this->_serve_public( 'font', get_query_var( 'asset_slug' ), $_data );
$this->_serve_public( get_query_var( 'asset_slug' ), 'font', $_data );
}

if( isset( $_data ) && get_query_var( 'asset_type' ) === 'image' ) {
$this->_serve_public( 'image', get_query_var( 'asset_slug' ), $_data );
$this->_serve_public( get_query_var( 'asset_slug' ), 'image', $_data );
}

if( isset( $_data ) && get_query_var( 'asset_type' ) === 'style' ) {
$this->_serve_public( 'style', get_query_var( 'asset_slug' ), $_data );
$this->_serve_public( get_query_var( 'asset_slug' ), 'style', $_data );
}

if( isset( $_data ) && get_query_var( 'asset_type' ) === 'model' ) {
$this->_serve_public( 'model', get_query_var( 'asset_slug' ), $_data );
$this->_serve_public( get_query_var( 'asset_slug' ), 'model', $_data );
}

// Stop Request. (willl break wp-amd);
Expand All @@ -1212,7 +1212,7 @@ public function _redirect( $query_vars ) {
* @param $name
* @param string $data
*/
private function _serve_public( $type = '', $name, $data = '' ) {
private function _serve_public( $name, $type = '', $data = '' ) {

// Configure Headers.
$headers = apply_filters( 'udx:theme:public:' . $type . 'headers', array(
Expand Down

0 comments on commit 5ad20c1

Please sign in to comment.