wp_network_dashboard_right_now

The timeline below displays how wordpress function wp_network_dashboard_right_now has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.2

/**
 * @since 3.1.0
 */
function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    /* translators: %s: Number of users on the network. */
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    /* translators: %s: Number of sites on the network. */
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    /* translators: 1: Text indicating the number of sites on the network, 2: Text indicating the number of users on the network. */
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>


	<?php 
    /**
     * Fires in the Network Admin 'Right Now' dashboard widget
     * just before the user and site search form fields.
     *
     * @since MU (3.0.0)
     */
    do_action('wpmuadminresult');
    ?>

	<form action="<?php 
    echo esc_url(network_admin_url('users.php'));
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-users">
				<?php 
    /* translators: Hidden accessibility text. */
    _e('Search Users');
    ?>
			</label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users" />
			<?php 
    submit_button(__('Search Users'), '', false, false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo esc_url(network_admin_url('sites.php'));
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-sites">
				<?php 
    /* translators: Hidden accessibility text. */
    _e('Search Sites');
    ?>
			</label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites" />
			<?php 
    submit_button(__('Search Sites'), '', false, false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
	<?php 
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU (3.0.0)
     */
    do_action('mu_rightnow_end');
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU (3.0.0)
     */
    do_action('mu_activity_box_end');
}

WordPress Version: 5.8

/**
 * @since 3.1.0
 */
function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    /* translators: %s: Number of users on the network. */
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    /* translators: %s: Number of sites on the network. */
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    /* translators: 1: Text indicating the number of sites on the network, 2: Text indicating the number of users on the network. */
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>


	<?php 
    /**
     * Fires in the Network Admin 'Right Now' dashboard widget
     * just before the user and site search form fields.
     *
     * @since MU (3.0.0)
     */
    do_action('wpmuadminresult');
    ?>

	<form action="<?php 
    echo esc_url(network_admin_url('users.php'));
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-users"><?php 
    _e('Search Users');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users" />
			<?php 
    submit_button(__('Search Users'), '', false, false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo esc_url(network_admin_url('sites.php'));
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-sites"><?php 
    _e('Search Sites');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites" />
			<?php 
    submit_button(__('Search Sites'), '', false, false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
	<?php 
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU (3.0.0)
     */
    do_action('mu_rightnow_end');
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU (3.0.0)
     */
    do_action('mu_activity_box_end');
}

WordPress Version: 5.3

/**
 * @since 3.1.0
 */
function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    /* translators: %s: Number of users on the network. */
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    /* translators: %s: Number of sites on the network. */
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    /* translators: 1: Text indicating the number of sites on the network, 2: Text indicating the number of users on the network. */
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>


	<?php 
    /**
     * Fires in the Network Admin 'Right Now' dashboard widget
     * just before the user and site search form fields.
     *
     * @since MU (3.0.0)
     */
    do_action('wpmuadminresult');
    ?>

	<form action="<?php 
    echo network_admin_url('users.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-users"><?php 
    _e('Search Users');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/>
			<?php 
    submit_button(__('Search Users'), '', false, false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo network_admin_url('sites.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-sites"><?php 
    _e('Search Sites');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/>
			<?php 
    submit_button(__('Search Sites'), '', false, false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
	<?php 
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU (3.0.0)
     */
    do_action('mu_rightnow_end');
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU (3.0.0)
     */
    do_action('mu_activity_box_end');
}

WordPress Version: 5.1

/**
 * @since 3.1.0
 */
function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    /* translators: %s: number of users on the network */
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    /* translators: %s: number of sites on the network */
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    /* translators: 1: text indicating the number of sites on the network, 2: text indicating the number of users on the network */
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>


	<?php 
    /**
     * Fires in the Network Admin 'Right Now' dashboard widget
     * just before the user and site search form fields.
     *
     * @since MU (3.0.0)
     */
    do_action('wpmuadminresult');
    ?>

	<form action="<?php 
    echo network_admin_url('users.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-users"><?php 
    _e('Search Users');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/>
			<?php 
    submit_button(__('Search Users'), '', false, false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo network_admin_url('sites.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-sites"><?php 
    _e('Search Sites');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/>
			<?php 
    submit_button(__('Search Sites'), '', false, false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
	<?php 
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU (3.0.0)
     */
    do_action('mu_rightnow_end');
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU (3.0.0)
     */
    do_action('mu_activity_box_end');
}

WordPress Version: 4.9

/**
 * @since 3.1.0
 */
function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    /* translators: %s: number of users on the network */
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    /* translators: %s: number of sites on the network */
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    /* translators: 1: text indicating the number of sites on the network, 2: text indicating the number of users on the network */
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>


	<?php 
    /**
     * Fires in the Network Admin 'Right Now' dashboard widget
     * just before the user and site search form fields.
     *
     * @since MU (3.0.0)
     *
     * @param null $unused
     */
    do_action('wpmuadminresult', '');
    ?>

	<form action="<?php 
    echo network_admin_url('users.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-users"><?php 
    _e('Search Users');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/>
			<?php 
    submit_button(__('Search Users'), '', false, false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo network_admin_url('sites.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-sites"><?php 
    _e('Search Sites');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/>
			<?php 
    submit_button(__('Search Sites'), '', false, false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
<?php 
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU (3.0.0)
     */
    do_action('mu_rightnow_end');
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU (3.0.0)
     */
    do_action('mu_activity_box_end');
}

WordPress Version: 4.7

/**
 * @since 3.1.0
 */
function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    /* translators: 1: Number of users on the network */
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    /* translators: 1: Number of sites on the network */
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    /* translators: 1: Text indicating the number of sites on the network, 2: Text indicating the number of users on the network */
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>


	<?php 
    /**
     * Fires in the Network Admin 'Right Now' dashboard widget
     * just before the user and site search form fields.
     *
     * @since MU
     *
     * @param null $unused
     */
    do_action('wpmuadminresult', '');
    ?>

	<form action="<?php 
    echo network_admin_url('users.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-users"><?php 
    _e('Search Users');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/>
			<?php 
    submit_button(__('Search Users'), '', false, false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo network_admin_url('sites.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-sites"><?php 
    _e('Search Sites');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/>
			<?php 
    submit_button(__('Search Sites'), '', false, false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
<?php 
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU
     */
    do_action('mu_rightnow_end');
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU
     */
    do_action('mu_activity_box_end');
}

WordPress Version: 4.4

/**
 * @since 3.1.0
 */
function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>


	<?php 
    /**
     * Fires in the Network Admin 'Right Now' dashboard widget
     * just before the user and site search form fields.
     *
     * @since MU
     *
     * @param null $unused
     */
    do_action('wpmuadminresult', '');
    ?>

	<form action="<?php 
    echo network_admin_url('users.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-users"><?php 
    _e('Search Users');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/>
			<?php 
    submit_button(__('Search Users'), 'button', false, false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo network_admin_url('sites.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-sites"><?php 
    _e('Search Sites');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/>
			<?php 
    submit_button(__('Search Sites'), 'button', false, false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
<?php 
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU
     */
    do_action('mu_rightnow_end');
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU
     */
    do_action('mu_activity_box_end');
}

WordPress Version: 4.3

/**
 * @since 3.1.0
 */
function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>


	<?php 
    /**
     * Fires in the Network Admin 'Right Now' dashboard widget
     * just before the user and site search form fields.
     *
     * @since MU
     *
     * @param null $unused
     */
    do_action('wpmuadminresult', '');
    ?>

	<form action="<?php 
    echo network_admin_url('users.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-users"><?php 
    _e('Search Users');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/>
			<?php 
    submit_button(__('Search Users'), 'button', 'submit', false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo network_admin_url('sites.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-sites"><?php 
    _e('Search Sites');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/>
			<?php 
    submit_button(__('Search Sites'), 'button', 'submit', false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
<?php 
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU
     */
    do_action('mu_rightnow_end');
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU
     */
    do_action('mu_activity_box_end');
}

WordPress Version: 4.2

function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>


	<?php 
    /**
     * Fires in the Network Admin 'Right Now' dashboard widget
     * just before the user and site search form fields.
     *
     * @since MU
     *
     * @param null $unused
     */
    do_action('wpmuadminresult', '');
    ?>

	<form action="<?php 
    echo network_admin_url('users.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-users"><?php 
    _e('Search Users');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/>
			<?php 
    submit_button(__('Search Users'), 'button', 'submit', false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo network_admin_url('sites.php');
    ?>" method="get">
		<p>
			<label class="screen-reader-text" for="search-sites"><?php 
    _e('Search Sites');
    ?></label>
			<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/>
			<?php 
    submit_button(__('Search Sites'), 'button', 'submit', false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
<?php 
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU
     */
    do_action('mu_rightnow_end');
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU
     */
    do_action('mu_activity_box_end');
}

WordPress Version: 3.9

function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>


	<?php 
    /**
     * Fires in the Network Admin 'Right Now' dashboard widget
     * just before the user and site search form fields.
     *
     * @since MU
     *
     * @param null $unused
     */
    do_action('wpmuadminresult', '');
    ?>

	<form action="<?php 
    echo network_admin_url('users.php');
    ?>" method="get">
		<p>
			<input type="search" name="s" value="" size="30" autocomplete="off" />
			<?php 
    submit_button(__('Search Users'), 'button', 'submit', false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo network_admin_url('sites.php');
    ?>" method="get">
		<p>
			<input type="search" name="s" value="" size="30" autocomplete="off" />
			<?php 
    submit_button(__('Search Sites'), 'button', 'submit', false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
<?php 
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU
     */
    do_action('mu_rightnow_end');
    /**
     * Fires at the end of the 'Right Now' widget in the Network Admin dashboard.
     *
     * @since MU
     */
    do_action('mu_activity_box_end');
}

WordPress Version: 3.7

function wp_network_dashboard_right_now()
{
    $actions = array();
    if (current_user_can('create_sites')) {
        $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __('Create a New Site') . '</a>';
    }
    if (current_user_can('create_users')) {
        $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __('Create a New User') . '</a>';
    }
    $c_users = get_user_count();
    $c_blogs = get_blog_count();
    $user_text = sprintf(_n('%s user', '%s users', $c_users), number_format_i18n($c_users));
    $blog_text = sprintf(_n('%s site', '%s sites', $c_blogs), number_format_i18n($c_blogs));
    $sentence = sprintf(__('You have %1$s and %2$s.'), $blog_text, $user_text);
    if ($actions) {
        echo '<ul class="subsubsub">';
        foreach ($actions as $class => $action) {
            $actions[$class] = "\t<li class='{$class}'>{$action}";
        }
        echo implode(" |</li>\n", $actions) . "</li>\n";
        echo '</ul>';
    }
    ?>
	<br class="clear" />

	<p class="youhave"><?php 
    echo $sentence;
    ?></p>
	<?php 
    do_action('wpmuadminresult', '');
    ?>

	<form action="<?php 
    echo network_admin_url('users.php');
    ?>" method="get">
		<p>
			<input type="search" name="s" value="" size="30" autocomplete="off" />
			<?php 
    submit_button(__('Search Users'), 'button', 'submit', false, array('id' => 'submit_users'));
    ?>
		</p>
	</form>

	<form action="<?php 
    echo network_admin_url('sites.php');
    ?>" method="get">
		<p>
			<input type="search" name="s" value="" size="30" autocomplete="off" />
			<?php 
    submit_button(__('Search Sites'), 'button', 'submit', false, array('id' => 'submit_sites'));
    ?>
		</p>
	</form>
<?php 
    do_action('mu_rightnow_end');
    do_action('mu_activity_box_end');
}