WordPress.org

Ready to get started?Download WordPress

Forums

Lazyest Gallery
Change in widget name broke my site (4 posts)

  1. Joy
    Member
    Posted 1 year ago #

    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/

  2. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  3. Joy
    Member
    Posted 1 year ago #

    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.

  4. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.