Support » Plugin: Responsive Gallery Grid » if (! empty( $attr['type']) && $attr['type'] == 'native') BUG

  • Last Edit. Tested and it works well with other plugins.
    You need to return the $output this way if another plugin is using the gallery you are not breaking it…

    Could not edit my first ticket, so here is the same one after the edit.

    if (! empty( $attr['type']) && $attr['type'] == 'native') {
      // returning nothing will make gallery_shortcode take over
      return '';
    }

    The if statement should be updated to just:

    if (!empty($attr['type']) && $attr['type'] != 'rgg'){return return $output;}

    Because if I have some special type to do something else, your plugin breaks it. You should not assume that type is not being used by other functions or plugins…

    https://wordpress.org/plugins/responsive-gallery-grid/

  • The topic ‘if (! empty( $attr['type']) && $attr['type'] == 'native') BUG’ is closed to new replies.