Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: WordPress Multi-Widget Class

  1. #11
    itsananderson's Avatar
    itsananderson is offline Big Tipper
    Join Date
    Jan 2009
    Location
    Terre Haute, IN
    Posts
    354

    Default

    So the plugin can take a widget that isn't a multi-widget and make it one on the fly? That sounds impressive, but I wonder how well it works (if that's what it does).

  2. #12
    PeterButler is offline Hello World
    Join Date
    Apr 2009
    Posts
    10

    Default

    I assume when 2.8 is released, legacy widgets are still going to be supported? Seems like there would be a pretty high number of unworking widgets out there if they didn't.

  3. #13
    itsananderson's Avatar
    itsananderson is offline Big Tipper
    Join Date
    Jan 2009
    Location
    Terre Haute, IN
    Posts
    354

    Default

    Well, I think the multi-widget plugin just automates the multi-widget creation that already exists, so it shouldn't break old plugins. I'd imagine that future releases might, but it wouldn't make sense to stop support in the same release that includes the class.

  4. #14
    andrea_r's Avatar
    andrea_r is offline WordPress Rockstar
    Join Date
    Jan 2009
    Location
    Eastern Canada
    Posts
    1,325

    Default

    The new class has almost all the exact same code in it. The only thing now is, when you write a widget, there was a line in there about registering.

    Now you don't need that line.

    That's all we could find.

  5. #15
    Jeffro's Avatar
    Jeffro is offline WPTavern Forum Admin
    Join Date
    Jan 2009
    Location
    Ohio
    Posts
    2,358

    Default

    The way I read into it, all of the regular old widgets will still work. However, if they choose to update them so that we can use more than one instance of them at a time, it will be very easy to add that bit of code to the widget.

  6. #16
    davecoveney is offline Tavern Regular
    Join Date
    Jan 2009
    Posts
    211

    Default

    Old multi-instance widgets do break in the new version. At least, they do for us, and that's likely to be the case for a lot of other theme/plugin authors, sadly.

    It's easy to fix, just a bit of a pain, especially if you want to keep backward compatibility, which is a big thing for us with released themes. Custom themes are less of a problem - usually they're current theme and forward.

  7. #17
    itsananderson's Avatar
    itsananderson is offline Big Tipper
    Join Date
    Jan 2009
    Location
    Terre Haute, IN
    Posts
    354

    Default

    Well that sounds like fun :)

    I'm surprised they haven't at least provided limited backward compatibility.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •