Skip to content

Commit

Permalink
v4.3.25
Browse files Browse the repository at this point in the history
Signed-off-by: Kev Provance <kevin.provance@gmail.com>
  • Loading branch information
kprovance committed Jan 27, 2023
1 parent c7d29fb commit 9a90933
Showing 1 changed file with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,6 @@
*/
class Redux_Custom_Fonts extends Redux_Field {

/**
* Constructor.
*
* @param array $field Field.
* @param array $value Values.
* @param object $parent ReduxFramework.
*
* @throws ReflectionException Exception.
*/
public function __construct( $field = array(), $value = null, $parent = null ) {
parent::__construct( $field, $value, $parent );

add_action( 'enqueue_block_editor_assets', array( $this, 'block_editor_styles' ), 99 );
}

/**
* Set field defaults.
*/
Expand Down Expand Up @@ -219,23 +204,5 @@ public function enqueue() {
);
}
}

/**
* Add styles for block editor.
*
* @return void
*/
public function block_editor_styles(): void {
$class = Redux_Extension_Custom_Fonts::$instance;

if ( ! empty( $class->custom_fonts ) ) {
wp_enqueue_style(
'redux-custom_fonts-css',
$class->upload_url . 'fonts.css',
array(),
time()
);
}
}
}
}

0 comments on commit 9a90933

Please sign in to comment.