WordPress.org

Support

Support » Plugins and Hacks » [Plugin: ThreeWP Broadcast] blog_list does not show blog with same name

[Plugin: ThreeWP Broadcast] blog_list does not show blog with same name

  • saiballo

    @saiballo

    Hi,

    the plugin is very good but if you have more than one blgo whith the same name, you only see the first blog in your plugin list.

    To solve the issue I add:

    $blogs[$blog_id]['blog_id'] = $blog_id;

    in ThreeWP_Broadcast.php. so now the code is:

    foreach( $blogs as $blog_id=>$blog)
    {
    $tempBlog = $this->object_to_array(get_blog_details( $blog_id, true) );
    
    	$blogs[$blog_id]['blog_id'] = $blog_id;
    	$blogs[$blog_id]['blogname'] = $tempBlog['blogname'];
    	$blogs[$blog_id]['siteurl'] = $tempBlog['siteurl'];
    	$blogs[$blog_id]['domain'] = $tempBlog['domain'];
    }

    then I changed the key in array sort:

    change

    $blogs = self::array_rekey( $blogs, 'blogname' );

    to

    $blogs = self::array_rekey( $blogs, 'blog_id' );

    http://wordpress.org/extend/plugins/threewp-broadcast/

  • The topic ‘[Plugin: ThreeWP Broadcast] blog_list does not show blog with same name’ is closed to new replies.