The MU forums have moved to WordPress.org

Help updating this widget for 1.5.1 ?? (2 posts)

  1. crsneil
    Member
    Posted 16 years ago #

    Here's the older version:

    http://codex.wordpress.org/WPMU_List_New_Blogs_Widget

    I'm nowhere near smart enough to update it for 1.5.1 - I can see some of the differences in how the widgets are handled, but I'd rather not break my install by experimenting.

  2. crsneil
    Member
    Posted 16 years ago #

    Let me save you the effort of clicking the link...
    Again, need help bringing the code below "up to speed" for 1.5.1 - thanks in advance.

    <?php
     function widget_list_newest_blogs($args) {
            extract($args);
    
            if(function_exists(fimii_wpmu_newest_blogs)) {
                     echo $before_widget;
    
                     echo $before_title . 'Recently Created Blogs' . $after_title;
                            echo "
    <ul>\n";
                            fimii_wpmu_newest_blogs(5);
                            echo "</ul>
    \n";
                     echo $after_widget;
            } else {
                    echo "Error - function list_all_wpmu_blogs not found";
            }
     }
     register_sidebar_widget('List Newest Blogs', 'widget_list_newest_blogs');
     ?>

About this Topic