WordPress.org

Ready to get started?Download WordPress

Forums

ThreeWP Broadcast
blog_list does not show blog with same name (1 post)

  1. saiballo
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.