• Resolved Benson Ho

    (@benho)


    Hi I think there was a bug in the plugin for the wpdm_direct_link shortcode.
    Setting a class or id in the shortcode incorrectly sets the target attribute.

    /libs/class.ShortCodes.php:319
    $class = isset($params[‘class’])?”target={$params[‘class’]}”:””;
    $id = isset($params[‘id’])?”target={$params[‘id’]}”:””;

    I’m guessing it should look like this:
    $class = isset($params[‘class’])?”class={$params[‘class’]}”:””;
    $id = isset($params[‘id’])?”id={$params[‘id’]}”:””;

    Hope im not mistaken

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘wpdm_direct_link – ShortCode bug’ is closed to new replies.