Plugin Directory

Changeset 734883

Timestamp:
07/02/2013 12:37:45 AM (11 years ago)
Author:
japh
Message:

Releasing minor version 2.0.2

Location:
wp-butler/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-butler/trunk/readme.txt

    r668890 r734883  
    66Requires at least: 3.1 
    77Tested up to: 3.5 
    8 Stable tag: 2.0.1
     8Stable tag: 2.0.
    99
    1010Provides a text field in the WP Admin allowing you to jump to common WP Actions.
     
    4444
    4545== Changelog ==
     46
     47
     48
     49
    4650
    4751= 2.0.1 =
  • wp-butler/trunk/wp-butler.php

    r668890 r734883  
    44Plugin URI:  http://wpbutler.com
    55Description: WP Butler brings you what you need in the Wordpress Admin. An autocomplete menu to let you jump to all the common tasks you may need to perform, just hit <code>shift+alt+b</code>!
    6 Version:     2.0.1
     6Version:     2.0.
    77Author:      Japh
    88Author URI:  http://japh.com.au
     
    432432                'number' => 10,
    433433            );
    434             $users = get_users( $params );
     434
     435            $users = array();
     436
     437            if ( is_multisite() ) {
     438
     439                $blogs = get_blogs_of_user( get_current_user_id() );
     440
     441                foreach ( $blogs as $blog ) {
     442                    $params['blog_id'] = $blog->userblog_id;
     443                    $blog_users = get_users( $params );
     444
     445                    foreach ( $blog_users as $user ) {
     446                        if ( ! in_array( $user, $users ) ) {
     447                            $users[] = $user;
     448                        }
     449                    }
     450
     451                }
     452
     453            }
     454            else {
     455                $users = get_users( $params );
     456            }
    435457
    436458            $actions = array();
Note: See TracChangeset for help on using the changeset viewer.