Support » Plugin: Shortcodes by Angie Makes » bug: wc_image_links assigning any class brakes the shortcode

  • Hello,

    Just a report. Trying to assign any class name to wc_image_links gives wrong rendering.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m wrong. There is a forgotten </div> in class-register.php line 1789

    $html = ‘<div id=”wc-shortcodes-image-links” class=”‘.implode( ‘ ‘, $classes ).'”><div class=”wc-shortcodes-image-links-wrapper-inner”>’.$html.'</div>’;

    need one more </div> at the end.

    I was right. There is another mistake in the string 1787 you replace the whole array with the class name given by user and strip your own classes:

    So instead:

    if ( ! empty( $atts[‘class’] ) ) {
    $classes = $atts[‘class’];
    }

    Should be:

    if ( ! empty( $atts[‘class’] ) ) {
    $classes[] = $atts[‘class’];
    }

    I can not use this shortcode at all. It pushes the sidebar to the bottom and breaks the wc_posts shortcode after that. Is there any way for me to solve that problem without any coding experience?

    Well I found those lines and fixed them, and it actually did the trick.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘bug: wc_image_links assigning any class brakes the shortcode’ is closed to new replies.