WordPress.org

Support

Support » Plugins and Hacks » Lazyest Gallery » Change in widget name broke my site

Change in widget name broke my site

  • I just updated to version 1.1.20. I read the changes list first and wondered if it would break my site. Sure enough, it did.
    You changed the name of the widget “LG Random Image” to “LG Random Images”, and yes that does make more sense, but I use the name in another plugin called Shortcoder so I can put the widget on my home page content area.

    I see you also added a widget for LG Really Random Images, which is what I wanted (how did you know?), but when I switched to that one the output is different and includes the image name.

    Both of these widgets output a default title if it’s blank, so I have to put a blank in there to get no title.

    http://wordpress.org/extend/plugins/lazyest-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcel Brinkkemper

    @macbrink

    Aw, it was not my intention to break sites when I updated the widgets.
    I think the title of the widget doesn’t matter as much as the fact that the widgets are now WP_Widgets insted of a lot of spaghetti coded functions 😉
    Couldn’t you hide the titles with css?

    Well, it did matter because the widget didn’t carry forward from the previous version (it wasn’t in the sidebar). Changes like that should be explicitly mentioned in the update notice because it breaks sites and people don’t go check their site after an update.

    I guess it would be easier if you provided a shortcode for the widget functionality. (or do you now?)
    And both the widget and the shortcode could have a parameter for whether to output the image name or not. It’s better to reduce HTML than add more CSS.

    Plugin Author Marcel Brinkkemper

    @macbrink

    I had mentioned the complete overhaul of all widgets in the Upgrade Notice.
    The widgets do not have a shortcode to go with it.
    The ‘old’ lg_random_image is available as template function:
    lg_random_image( $title, $count $folder, $subfolders )
    $title = title above the random image(s)
    $count= number of images to show
    $folder = folder name folder/subfolder
    $subfolder = bool include subfolders

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change in widget name broke my site’ is closed to new replies.
Skip to toolbar