Snippet of code not rendering after recent Hustle update

With previous version of Hustle the following code rendered the icon:

<?php
$icon_popup = '<div id="hustle_module_1" style="width:100%;height:100%;position:relative;"><i class="fa fa-envelope" aria-hidden="true"></i></div>';
echo do_shortcode( "[wd_hustle id='ac-icon-click-email-capture' type='popup']" . $icon_popup . "[/wd_hustle]" ); ?>

Result:

[attachments are only viewable by logged-in members]

And popup is displayed correctly.

But with the recent version of Hustle this is the result:

[attachments are only viewable by logged-in members]

Thanks in advance!

  • Ash
    • Code Norris

    Hello Brandon

    I can confirm the issue on my test site, so I am marking this as a bug and reporting to the developer. Hopefully, very soon the issue will be fixed and an update will be released. We appreciate your patience on this.

    As a workaround, please go to /wp-content/plugins/hustle/inc/hustle-module-front.php line no 459 and replace

    return sprintf("<a href='#' class='%s' data-id='%s' data-type='%s'>%s</a>", self::SHORTCODE_TRIGGER_CSS_CLASS . " hustle_module_" . esc_attr( $module->id ) . " " . esc_attr( $custom_classes ), esc_attr( $module->id ), esc_attr( $type ), esc_html( $content ) );

    with

    return sprintf("<a href='#' class='%s' data-id='%s' data-type='%s'>%s</a>", self::SHORTCODE_TRIGGER_CSS_CLASS . " hustle_module_" . esc_attr( $module->id ) . " " . esc_attr( $custom_classes ), esc_attr( $module->id ), esc_attr( $type ), $content );

    As we have FTP info, if you want we can make the change too, please let us know.

    Have a nice day!

    Cheers,

    Ash