| @@ -239,9 +239,9 @@ | ||
| 239 | 239 | } else { |
| 240 | 240 | wp_add_inline_style( $dep, $meta['css'] ); |
| 241 | 241 | } |
| 242 | 242 | } elseif ( self::CSS_STATUS_FILE === $meta['status'] ) { // Re-check if it's not empty after CSS update. |
| 243 | - wp_enqueue_style( $this->get_file_handle_id(), $this->get_url(), $this->get_enqueue_dependencies(), null ); | |
| 243 | + wp_enqueue_style( $this->get_file_handle_id(), $this->get_url(), $this->get_enqueue_dependencies(), null ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion | |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | // Handle fonts. |
| 247 | 247 | if ( ! empty( $meta['fonts'] ) ) { |
| @@ -548,9 +548,9 @@ | ||
| 548 | 548 | * @param array $placeholders Placeholders. |
| 549 | 549 | * @param array $replacements Replacements. |
| 550 | 550 | * @param array $all_controls All controls. |
| 551 | 551 | */ |
| 552 | - public function add_controls_stack_style_rules( Controls_Stack $controls_stack, array $controls, array $values, array $placeholders, array $replacements, ?array $all_controls = null ) { | |
| 552 | + public function add_controls_stack_style_rules( Controls_Stack $controls_stack, array $controls, array $values, array $placeholders, array $replacements, array $all_controls = null ) { | |
| 553 | 553 | if ( ! $all_controls ) { |
| 554 | 554 | $all_controls = $controls_stack->get_controls(); |
| 555 | 555 | } |
| 556 | 556 | |
| @@ -907,9 +907,9 @@ | ||
| 907 | 907 | if ( $control['groupPrefix'] . 'font_family' === $control['name'] ) { |
| 908 | 908 | $default_generic_fonts = Plugin::$instance->kits_manager->get_current_settings( 'default_generic_fonts' ); |
| 909 | 909 | |
| 910 | 910 | if ( $default_generic_fonts ) { |
| 911 | - $value .= ", $default_generic_fonts"; | |
| 911 | + $value .= ", $default_generic_fonts"; | |
| 912 | 912 | } |
| 913 | 913 | } |
| 914 | 914 | } else { |
| 915 | 915 | $value = "var( --e-global-$control[type]-$id )"; |
| @@ -917,9 +917,9 @@ | ||
| 917 | 917 | |
| 918 | 918 | return $value; |
| 919 | 919 | } |
| 920 | 920 | |
| 921 | - final protected function get_active_controls( Controls_Stack $controls_stack, ?array $controls = null, ?array $settings = null ) { | |
| 921 | + final protected function get_active_controls( Controls_Stack $controls_stack, array $controls = null, array $settings = null ) { | |
| 922 | 922 | if ( ! $controls ) { |
| 923 | 923 | $controls = $controls_stack->get_controls(); |
| 924 | 924 | } |
| 925 | 925 | |
| @@ -945,9 +945,9 @@ | ||
| 945 | 945 | |
| 946 | 946 | return $active_controls; |
| 947 | 947 | } |
| 948 | 948 | |
| 949 | - final public function get_style_controls( Controls_Stack $controls_stack, ?array $controls = null, ?array $settings = null ) { | |
| 949 | + final public function get_style_controls( Controls_Stack $controls_stack, array $controls = null, array $settings = null ) { | |
| 950 | 950 | $controls = $this->get_active_controls( $controls_stack, $controls, $settings ); |
| 951 | 951 | |
| 952 | 952 | $style_controls = []; |
| 953 | 953 | |