Skip to content

Commit

Permalink
Remove variable for class check
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeyarce committed Apr 24, 2024
1 parent 856bbf4 commit b243532
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/class-wp-job-manager-email-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,7 @@ private static function get_email_content( $email_notification_key, $args, $is_p
* @return string
*/
private static function inject_styles( $content ) {
$css_inliner_class = CssInliner::class;
if ( class_exists( $css_inliner_class ) ) {
if ( class_exists( CssInliner::class ) ) {
try {
$dom_document = CssInliner::fromHtml( $content )->inlineCss( self::get_styles() )->getDomDocument();
$content = CssToAttributeConverter::fromDomDocument( $dom_document )->convertCssToVisualAttributes()->render();
Expand Down

0 comments on commit b243532

Please sign in to comment.