Support » Plugin: Gallery by BestWebSoft » [Plugin: Gallery] shortcode bug and fix

  • Resolved sipiatti


    Hi Developers,

    there is a bug in the shortcode handling. It is a functional problem, not a coding problem. The function isw echoing instead of returning the output so the gallery is diplayed at the top of the page content instead of the exact place of the shortcode.
    I made a quickfix with output buffering:
    after line $gllr_options = get_option( 'gllr_options' ); (about line nr. 809 in gallery-plugin.php) I inserted ob_start();
    and at the end of the function (around line nr. 889) I inserted these two lines

    $gllr_output = ob_get_clean();
            return $gllr_output;

    It works well, but maybe you desire another solution.

    Anyway, I love the plugin, it is simple and clean exactly what I prefer.


Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Gallery] shortcode bug and fix’ is closed to new replies.