Parsed: 131863

  public static function compile_css( $css_declarations, $css_selector ) {
    if ( empty( $css_declarations ) || ! is_array( $css_declarations ) ) {
      return '';
    }

    // Return an entire rule if there is a selector.
    if ( $css_selector ) {
      $css_rule = new WP_Style_Engine_CSS_Rule( $css_selector, $css_declarations );
      return $css_rule->get_css();
    }

    $css_declarations = new WP_Style_Engine_CSS_Declarations( $css_declarations );
    return $css_declarations->get_declarations_string();
  }