Skip to content

Commit

Permalink
Merge pull request #24 from siteorigin/resolve-deprecated-type-dynami…
Browse files Browse the repository at this point in the history
…c-property

Resolve Deprecated Notice `$google_fonts`
  • Loading branch information
AlexGStapleton authored Feb 12, 2024
2 parents b6fe6c2 + ce390d9 commit 9f808d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions inc/customizer/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
* A customizer control for choosing web fonts
*/
class SiteOrigin_Customize_Fonts_Control extends WP_Customize_Control {
public $id;
public $type;

function __construct( $manager, $id, $args = array() ) {
// Let other themes and plugins process the web fonts array
$google_web_fonts = include ( dirname(__FILE__) . '/google-fonts.php' );
Expand Down Expand Up @@ -53,14 +56,14 @@ protected function render() {
}
endif;

if ( !class_exists( 'SiteOrigin_Customizer_CSS_Builder' ) ) :
if ( ! class_exists( 'SiteOrigin_Customizer_CSS_Builder' ) ) :
/**
* This is used for building custom CSS.
*/
class SiteOrigin_Customizer_CSS_Builder {
private $css;
private $raw_css;
private $fonts;
private $google_fonts;
private $defaults;

// These are web safe fonts
Expand Down

0 comments on commit 9f808d9

Please sign in to comment.