wp_dashboard_right_now

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

WordPress Version: 5.8

//
// Dashboard Widgets.
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages.
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' === $post_type) {
                /* translators: %s: Number of posts. */
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                /* translators: %s: Number of pages. */
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments.
    $num_comm = wp_count_comments();
    if ($num_comm && ($num_comm->approved || $num_comm->moderated)) {
        /* translators: %s: Number of comments. */
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count">
			<a href="edit-comments.php"><?php 
        echo $text;
        ?></a>
		</li>
		<?php 
        $moderated_comments_count_i18n = number_format_i18n($num_comm->moderated);
        /* translators: %s: Number of comments. */
        $text = sprintf(_n('%s Comment in moderation', '%s Comments in moderation', $num_comm->moderated), $moderated_comments_count_i18n);
        ?>
		<li class="comment-mod-count<?php 
        echo (!$num_comm->moderated) ? ' hidden' : '';
        ?>">
			<a href="edit-comments.php?comment_status=moderated" class="comments-in-moderation-text"><?php 
        echo $text;
        ?></a>
		</li>
		<?php 
    }
    /**
     * Filters the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param string[] $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && !get_option('blog_public')) {
        /**
         * Filters the link title attribute for the 'Search engines discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         * @since 4.5.0 The default for `$title` was updated to an empty string.
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', '');
        /**
         * Filters the link label for the 'Search engines discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search engines discouraged'));
        $title_attr = ('' === $title) ? '' : " title='{$title}'";
        echo "<p class='search-engines-info'><a href='options-reading.php'{$title_attr}>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
		<?php 
    }
}

WordPress Version: 5.5

//
// Dashboard Widgets.
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages.
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' === $post_type) {
                /* translators: %s: Number of posts. */
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                /* translators: %s: Number of pages. */
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments.
    $num_comm = wp_count_comments();
    if ($num_comm && ($num_comm->approved || $num_comm->moderated)) {
        /* translators: %s: Number of comments. */
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        $moderated_comments_count_i18n = number_format_i18n($num_comm->moderated);
        /* translators: %s: Number of comments. */
        $text = sprintf(_n('%s Comment in moderation', '%s Comments in moderation', $num_comm->moderated), $moderated_comments_count_i18n);
        ?>
		<li class="comment-mod-count
		<?php 
        if (!$num_comm->moderated) {
            echo ' hidden';
        }
        ?>
		"><a href="edit-comments.php?comment_status=moderated" class="comments-in-moderation-text"><?php 
        echo $text;
        ?></a></li>
		<?php 
    }
    /**
     * Filters the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param string[] $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '0' == get_option('blog_public')) {
        /**
         * Filters the link title attribute for the 'Search engines discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         * @since 4.5.0 The default for `$title` was updated to an empty string.
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', '');
        /**
         * Filters the link label for the 'Search engines discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search engines discouraged'));
        $title_attr = ('' === $title) ? '' : " title='{$title}'";
        echo "<p class='search-engines-info'><a href='options-reading.php'{$title_attr}>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
		<?php 
    }
}

WordPress Version: 5.4

//
// Dashboard Widgets.
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages.
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                /* translators: %s: Number of posts. */
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                /* translators: %s: Number of pages. */
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments.
    $num_comm = wp_count_comments();
    if ($num_comm && ($num_comm->approved || $num_comm->moderated)) {
        /* translators: %s: Number of comments. */
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        $moderated_comments_count_i18n = number_format_i18n($num_comm->moderated);
        /* translators: %s: Number of comments. */
        $text = sprintf(_n('%s Comment in moderation', '%s Comments in moderation', $num_comm->moderated), $moderated_comments_count_i18n);
        ?>
		<li class="comment-mod-count
		<?php 
        if (!$num_comm->moderated) {
            echo ' hidden';
        }
        ?>
		"><a href="edit-comments.php?comment_status=moderated" class="comments-in-moderation-text"><?php 
        echo $text;
        ?></a></li>
		<?php 
    }
    /**
     * Filters the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param string[] $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '0' == get_option('blog_public')) {
        /**
         * Filters the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         * @since 4.5.0 The default for `$title` was updated to an empty string.
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', '');
        /**
         * Filters the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        $title_attr = ('' === $title) ? '' : " title='{$title}'";
        echo "<p><a href='options-reading.php'{$title_attr}>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
		<?php 
    }
}

WordPress Version: 5.3

//
// Dashboard Widgets
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                /* translators: %s: Number of posts. */
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                /* translators: %s: Number of pages. */
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && ($num_comm->approved || $num_comm->moderated)) {
        /* translators: %s: Number of comments. */
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        $moderated_comments_count_i18n = number_format_i18n($num_comm->moderated);
        /* translators: %s: Number of comments. */
        $text = sprintf(_n('%s Comment in moderation', '%s Comments in moderation', $num_comm->moderated), $moderated_comments_count_i18n);
        ?>
		<li class="comment-mod-count
		<?php 
        if (!$num_comm->moderated) {
            echo ' hidden';
        }
        ?>
		"><a href="edit-comments.php?comment_status=moderated" class="comments-in-moderation-text"><?php 
        echo $text;
        ?></a></li>
		<?php 
    }
    /**
     * Filters the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param string[] $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '0' == get_option('blog_public')) {
        /**
         * Filters the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         * @since 4.5.0 The default for `$title` was updated to an empty string.
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', '');
        /**
         * Filters the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        $title_attr = ('' === $title) ? '' : " title='{$title}'";
        echo "<p><a href='options-reading.php'{$title_attr}>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
		<?php 
    }
}

WordPress Version: 5.2

//
// Dashboard Widgets
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && ($num_comm->approved || $num_comm->moderated)) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        $moderated_comments_count_i18n = number_format_i18n($num_comm->moderated);
        /* translators: %s: number of comments in moderation */
        $text = sprintf(_n('%s Comment in moderation', '%s Comments in moderation', $num_comm->moderated), $moderated_comments_count_i18n);
        ?>
		<li class="comment-mod-count
		<?php 
        if (!$num_comm->moderated) {
            echo ' hidden';
        }
        ?>
		"><a href="edit-comments.php?comment_status=moderated" class="comments-in-moderation-text"><?php 
        echo $text;
        ?></a></li>
		<?php 
    }
    /**
     * Filters the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param string[] $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '0' == get_option('blog_public')) {
        /**
         * Filters the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         * @since 4.5.0 The default for `$title` was updated to an empty string.
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', '');
        /**
         * Filters the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        $title_attr = ('' === $title) ? '' : " title='{$title}'";
        echo "<p><a href='options-reading.php'{$title_attr}>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
		<?php 
    }
}

WordPress Version: 5.1

//
// Dashboard Widgets
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && ($num_comm->approved || $num_comm->moderated)) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        $moderated_comments_count_i18n = number_format_i18n($num_comm->moderated);
        /* translators: %s: number of comments in moderation */
        $text = sprintf(_nx('%s in moderation', '%s in moderation', $num_comm->moderated, 'comments'), $moderated_comments_count_i18n);
        /* translators: %s: number of comments in moderation */
        $aria_label = sprintf(_nx('%s comment in moderation', '%s comments in moderation', $num_comm->moderated, 'comments'), $moderated_comments_count_i18n);
        ?>
		<li class="comment-mod-count
		<?php 
        if (!$num_comm->moderated) {
            echo ' hidden';
        }
        ?>
		"><a href="edit-comments.php?comment_status=moderated" aria-label="<?php 
        echo esc_attr($aria_label);
        ?>"><?php 
        echo $text;
        ?></a></li>
		<?php 
    }
    /**
     * Filters the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param string[] $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '0' == get_option('blog_public')) {
        /**
         * Filters the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         * @since 4.5.0 The default for `$title` was updated to an empty string.
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', '');
        /**
         * Filters the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        $title_attr = ('' === $title) ? '' : " title='{$title}'";
        echo "<p><a href='options-reading.php'{$title_attr}>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
		<?php 
    }
}

WordPress Version: 4.9

//
// Dashboard Widgets
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && ($num_comm->approved || $num_comm->moderated)) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        $moderated_comments_count_i18n = number_format_i18n($num_comm->moderated);
        /* translators: %s: number of comments in moderation */
        $text = sprintf(_nx('%s in moderation', '%s in moderation', $num_comm->moderated, 'comments'), $moderated_comments_count_i18n);
        /* translators: %s: number of comments in moderation */
        $aria_label = sprintf(_nx('%s comment in moderation', '%s comments in moderation', $num_comm->moderated, 'comments'), $moderated_comments_count_i18n);
        ?>
		<li class="comment-mod-count<?php 
        if (!$num_comm->moderated) {
            echo ' hidden';
        }
        ?>"><a href="edit-comments.php?comment_status=moderated" aria-label="<?php 
        esc_attr_e($aria_label);
        ?>"><?php 
        echo $text;
        ?></a></li>
		<?php 
    }
    /**
     * Filters the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param array $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '0' == get_option('blog_public')) {
        /**
         * Filters the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         * @since 4.5.0 The default for `$title` was updated to an empty string.
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', '');
        /**
         * Filters the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        $title_attr = ('' === $title) ? '' : " title='{$title}'";
        echo "<p><a href='options-reading.php'{$title_attr}>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
	<?php 
    }
}

WordPress Version: 4.6

//
// Dashboard Widgets
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && ($num_comm->approved || $num_comm->moderated)) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        $moderated_comments_count_i18n = number_format_i18n($num_comm->moderated);
        /* translators: Number of comments in moderation */
        $text = sprintf(_nx('%s in moderation', '%s in moderation', $num_comm->moderated, 'comments'), $moderated_comments_count_i18n);
        /* translators: Number of comments in moderation */
        $aria_label = sprintf(_nx('%s comment in moderation', '%s comments in moderation', $num_comm->moderated, 'comments'), $moderated_comments_count_i18n);
        ?>
		<li class="comment-mod-count<?php 
        if (!$num_comm->moderated) {
            echo ' hidden';
        }
        ?>"><a href="edit-comments.php?comment_status=moderated" aria-label="<?php 
        esc_attr_e($aria_label);
        ?>"><?php 
        echo $text;
        ?></a></li>
		<?php 
    }
    /**
     * Filters the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param array $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '0' == get_option('blog_public')) {
        /**
         * Filters the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         * @since 4.5.0 The default for `$title` was updated to an empty string.
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', '');
        /**
         * Filters the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        $title_attr = ('' === $title) ? '' : " title='{$title}'";
        echo "<p><a href='options-reading.php'{$title_attr}>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
	<?php 
    }
}

WordPress Version: 4.5

//
// Dashboard Widgets
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && $num_comm->approved) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        $moderated_comments_count_i18n = number_format_i18n($num_comm->moderated);
        /* translators: Number of comments in moderation */
        $text = sprintf(_nx('%s in moderation', '%s in moderation', $num_comm->moderated, 'comments'), $moderated_comments_count_i18n);
        /* translators: Number of comments in moderation */
        $aria_label = sprintf(_nx('%s comment in moderation', '%s comments in moderation', $num_comm->moderated, 'comments'), $moderated_comments_count_i18n);
        ?>
		<li class="comment-mod-count<?php 
        if (!$num_comm->moderated) {
            echo ' hidden';
        }
        ?>"><a href="edit-comments.php?comment_status=moderated" aria-label="<?php 
        esc_attr_e($aria_label);
        ?>"><?php 
        echo $text;
        ?></a></li>
		<?php 
    }
    /**
     * Filter the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param array $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '0' == get_option('blog_public')) {
        /**
         * Filter the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         * @since 4.5.0 The default for `$title` was updated to an empty string.
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', '');
        /**
         * Filter the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        $title_attr = ('' === $title) ? '' : " title='{$title}'";
        echo "<p><a href='options-reading.php'{$title_attr}>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
	<?php 
    }
}

WordPress Version: 4.4

//
// Dashboard Widgets
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && $num_comm->approved) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        /* translators: Number of comments in moderation */
        $text = sprintf(_nx('%s in moderation', '%s in moderation', $num_comm->moderated, 'comments'), number_format_i18n($num_comm->moderated));
        ?>
		<li class="comment-mod-count<?php 
        if (!$num_comm->moderated) {
            echo ' hidden';
        }
        ?>"><a href="edit-comments.php?comment_status=moderated"><?php 
        echo $text;
        ?></a></li>
		<?php 
    }
    /**
     * Filter the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param array $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public')) {
        /**
         * Filter the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content'));
        /**
         * Filter the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        echo "<p><a href='options-reading.php' title='{$title}'>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
	<?php 
    }
}

WordPress Version: 4.1

//
// Dashboard Widgets
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && $num_comm->approved) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->approved), number_format_i18n($num_comm->approved));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        if ($num_comm->moderated) {
            /* translators: Number of comments in moderation */
            $text = sprintf(_nx('%s in moderation', '%s in moderation', $num_comm->moderated, 'comments'), number_format_i18n($num_comm->moderated));
            ?>
			<li class="comment-mod-count"><a href="edit-comments.php?comment_status=moderated"><?php 
            echo $text;
            ?></a></li>
			<?php 
        }
    }
    /**
     * Filter the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param array $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public')) {
        /**
         * Filter the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content'));
        /**
         * Filter the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        echo "<p><a href='options-reading.php' title='{$title}'>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
	<?php 
    }
}

WordPress Version: 4.0

//
// Dashboard Widgets
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && $num_comm->total_comments) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->total_comments), number_format_i18n($num_comm->total_comments));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        if ($num_comm->moderated) {
            /* translators: Number of comments in moderation */
            $text = sprintf(_nx('%s in moderation', '%s in moderation', $num_comm->moderated, 'comments'), number_format_i18n($num_comm->moderated));
            ?>
			<li class="comment-mod-count"><a href="edit-comments.php?comment_status=moderated"><?php 
            echo $text;
            ?></a></li>
			<?php 
        }
    }
    /**
     * Filter the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param array $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public')) {
        /**
         * Filter the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content'));
        /**
         * Filter the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        echo "<p><a href='options-reading.php' title='{$title}'>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
	<?php 
    }
}

WordPress Version: 3.9

//
// Dashboard Widgets
//
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    $theme = wp_get_theme();
    if (current_user_can('switch_themes')) {
        $theme_name = sprintf('<a href="themes.php">%1$s</a>', $theme->display('Name'));
    } else {
        $theme_name = $theme->display('Name');
    }
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && $num_comm->total_comments) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->total_comments), number_format_i18n($num_comm->total_comments));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        if ($num_comm->moderated) {
            /* translators: Number of comments in moderation */
            $text = sprintf(_nx('%s in moderation', '%s in moderation', $num_comm->moderated, 'comments'), number_format_i18n($num_comm->moderated));
            ?>
			<li class="comment-mod-count"><a href="edit-comments.php?comment_status=moderated"><?php 
            echo $text;
            ?></a></li>
			<?php 
        }
    }
    /**
     * Filter the array of extra elements to list in the 'At a Glance'
     * dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'. Each element
     * is wrapped in list-item tags on output.
     *
     * @since 3.8.0
     *
     * @param array $items Array of extra 'At a Glance' widget items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<?php 
    update_right_now_message();
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public')) {
        /**
         * Filter the link title attribute for the 'Search Engines Discouraged'
         * message displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $title Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content'));
        /**
         * Filter the link label for the 'Search Engines Discouraged' message
         * displayed in the 'At a Glance' dashboard widget.
         *
         * Prior to 3.8.0, the widget was named 'Right Now'.
         *
         * @since 3.0.0
         *
         * @param string $content Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        echo "<p><a href='options-reading.php' title='{$title}'>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    /*
     * activity_box_end has a core action, but only prints content when multisite.
     * Using an output buffer is the only way to really check if anything's displayed here.
     */
    ob_start();
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.5.0
     */
    do_action('rightnow_end');
    /**
     * Fires at the end of the 'At a Glance' dashboard widget.
     *
     * Prior to 3.8.0, the widget was named 'Right Now'.
     *
     * @since 2.0.0
     */
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
	<?php 
    }
}

WordPress Version: 8.1

/* Dashboard Widgets */
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    $theme = wp_get_theme();
    if (current_user_can('switch_themes')) {
        $theme_name = sprintf('<a href="themes.php">%1$s</a>', $theme->display('Name'));
    } else {
        $theme_name = $theme->display('Name');
    }
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            $post_type_object = get_post_type_object($post_type);
            if ($post_type_object && current_user_can($post_type_object->cap->edit_posts)) {
                printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
            } else {
                printf('<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text);
            }
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && $num_comm->total_comments) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->total_comments), number_format_i18n($num_comm->total_comments));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        if ($num_comm->moderated) {
            /* translators: Number of comments in moderation */
            $text = sprintf(_nx('%s in moderation', '%s in moderation', $num_comm->moderated, 'comments'), number_format_i18n($num_comm->moderated));
            ?>
			<li class="comment-mod-count"><a href="edit-comments.php?comment_status=moderated"><?php 
            echo $text;
            ?></a></li>
			<?php 
        }
    }
    /**
     * Include additional elements in the 'At a Glance' dashboard widget.
     * This widget was previously 'Right Now'.
     *
     * @since 3.8.0
     * @param array $items Array of items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<p><?php 
    printf(__('WordPress %1$s running %2$s theme.'), get_bloginfo('version', 'display'), $theme_name);
    ?></p>
	<?php 
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public')) {
        /**
         * Filter the title attribute for the link displayed in Site Content metabox when search engines are discouraged from indexing the site.
         *
         * @since 3.0.0
         *
         * @param string Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content'));
        /**
         * Filter the text for the link displayed in Site Content metabox when search engines are discouraged from indexing the site.
         *
         * @since 3.0.0
         *
         * @param string Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        echo "<p><a href='options-reading.php' title='{$title}'>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    // activity_box_end has a core action, but only prints content when multisite.
    // Using an output buffer is the only way to really check if anything's displayed here.
    ob_start();
    do_action('rightnow_end');
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
	<?php 
    }
}

WordPress Version: 3.8

/* Dashboard Widgets */
/**
 * Dashboard widget that displays some basic stats about the site.
 *
 * Formerly 'Right Now'. A streamlined 'At a Glance' as of 3.8.
 *
 * @since 2.7.0
 */
function wp_dashboard_right_now()
{
    $theme = wp_get_theme();
    if (current_user_can('switch_themes')) {
        $theme_name = sprintf('<a href="themes.php">%1$s</a>', $theme->display('Name'));
    } else {
        $theme_name = $theme->display('Name');
    }
    ?>
	<div class="main">
	<ul>
	<?php 
    // Posts and Pages
    foreach (array('post', 'page') as $post_type) {
        $num_posts = wp_count_posts($post_type);
        if ($num_posts && $num_posts->publish) {
            if ('post' == $post_type) {
                $text = _n('%s Post', '%s Posts', $num_posts->publish);
            } else {
                $text = _n('%s Page', '%s Pages', $num_posts->publish);
            }
            $text = sprintf($text, number_format_i18n($num_posts->publish));
            printf('<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text);
        }
    }
    // Comments
    $num_comm = wp_count_comments();
    if ($num_comm && $num_comm->total_comments) {
        $text = sprintf(_n('%s Comment', '%s Comments', $num_comm->total_comments), number_format_i18n($num_comm->total_comments));
        ?>
		<li class="comment-count"><a href="edit-comments.php"><?php 
        echo $text;
        ?></a></li>
		<?php 
        if ($num_comm->moderated) {
            /* translators: Number of comments in moderation */
            $text = sprintf(_nx('%s in moderation', '%s in moderation', $num_comm->moderated, 'comments'), number_format_i18n($num_comm->moderated));
            ?>
			<li class="comment-mod-count"><a href="edit-comments.php?comment_status=moderated"><?php 
            echo $text;
            ?></a></li>
			<?php 
        }
    }
    /**
     * Include additional elements in the 'At a Glance' dashboard widget.
     * This widget was previously 'Right Now'.
     *
     * @since 3.8.0
     * @param array $items Array of items.
     */
    $elements = apply_filters('dashboard_glance_items', array());
    if ($elements) {
        echo '<li>' . implode("</li>\n<li>", $elements) . "</li>\n";
    }
    ?>
	</ul>
	<p><?php 
    printf(__('WordPress %1$s running %2$s theme.'), get_bloginfo('version', 'display'), $theme_name);
    ?></p>
	<?php 
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public')) {
        /**
         * Filter the title attribute for the link displayed in Site Content metabox when search engines are discouraged from indexing the site.
         *
         * @since 3.0.0
         *
         * @param string Default attribute text.
         */
        $title = apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content'));
        /**
         * Filter the text for the link displayed in Site Content metabox when search engines are discouraged from indexing the site.
         *
         * @since 3.0.0
         *
         * @param string Default text.
         */
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        echo "<p><a href='options-reading.php' title='{$title}'>{$content}</a></p>";
    }
    ?>
	</div>
	<?php 
    // activity_box_end has a core action, but only prints content when multisite.
    // Using an output buffer is the only way to really check if anything's displayed here.
    ob_start();
    do_action('rightnow_end');
    do_action('activity_box_end');
    $actions = ob_get_clean();
    if (!empty($actions)) {
        ?>
	<div class="sub">
		<?php 
        echo $actions;
        ?>
	</div>
	<?php 
    }
}

WordPress Version: 3.7

/* Dashboard Widgets */
function wp_dashboard_right_now()
{
    global $wp_registered_sidebars;
    $num_posts = wp_count_posts('post');
    $num_pages = wp_count_posts('page');
    $num_cats = wp_count_terms('category');
    $num_tags = wp_count_terms('post_tag');
    $num_comm = wp_count_comments();
    echo "\n\t" . '<div class="table table_content">';
    echo "\n\t" . '<p class="sub">' . __('Content') . '</p>' . "\n\t" . '<table>';
    echo "\n\t" . '<tr class="first">';
    // Posts
    $num = number_format_i18n($num_posts->publish);
    $text = _n('Post', 'Posts', intval($num_posts->publish));
    if (current_user_can('edit_posts')) {
        $num = "<a href='edit.php'>{$num}</a>";
        $text = "<a href='edit.php'>{$text}</a>";
    }
    echo '<td class="first b b-posts">' . $num . '</td>';
    echo '<td class="t posts">' . $text . '</td>';
    echo '</tr><tr>';
    /* TODO: Show status breakdown on hover
    	if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can
    		$post_type_texts[] = '<a href="edit-pages.php">'.sprintf( _n( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).'</a>';
    	}
    	if ( $can_edit_posts && !empty($num_posts->draft) ) {
    		$post_type_texts[] = '<a href="edit.php?post_status=draft">'.sprintf( _n( '%s draft', '%s drafts', $num_posts->draft ), number_format_i18n( $num_posts->draft ) ).'</a>';
    	}
    	if ( $can_edit_posts && !empty($num_posts->future) ) {
    		$post_type_texts[] = '<a href="edit.php?post_status=future">'.sprintf( _n( '%s scheduled post', '%s scheduled posts', $num_posts->future ), number_format_i18n( $num_posts->future ) ).'</a>';
    	}
    	if ( current_user_can('publish_posts') && !empty($num_posts->pending) ) {
    		$pending_text = sprintf( _n( 'There is <a href="%1$s">%2$s post</a> pending your review.', 'There are <a href="%1$s">%2$s posts</a> pending your review.', $num_posts->pending ), 'edit.php?post_status=pending', number_format_i18n( $num_posts->pending ) );
    	} else {
    		$pending_text = '';
    	}
    	*/
    // Pages
    $num = number_format_i18n($num_pages->publish);
    $text = _n('Page', 'Pages', $num_pages->publish);
    if (current_user_can('edit_pages')) {
        $num = "<a href='edit.php?post_type=page'>{$num}</a>";
        $text = "<a href='edit.php?post_type=page'>{$text}</a>";
    }
    echo '<td class="first b b_pages">' . $num . '</td>';
    echo '<td class="t pages">' . $text . '</td>';
    echo '</tr><tr>';
    // Categories
    $num = number_format_i18n($num_cats);
    $text = _n('Category', 'Categories', $num_cats);
    if (current_user_can('manage_categories')) {
        $num = "<a href='edit-tags.php?taxonomy=category'>{$num}</a>";
        $text = "<a href='edit-tags.php?taxonomy=category'>{$text}</a>";
    }
    echo '<td class="first b b-cats">' . $num . '</td>';
    echo '<td class="t cats">' . $text . '</td>';
    echo '</tr><tr>';
    // Tags
    $num = number_format_i18n($num_tags);
    $text = _n('Tag', 'Tags', $num_tags);
    if (current_user_can('manage_categories')) {
        $num = "<a href='edit-tags.php'>{$num}</a>";
        $text = "<a href='edit-tags.php'>{$text}</a>";
    }
    echo '<td class="first b b-tags">' . $num . '</td>';
    echo '<td class="t tags">' . $text . '</td>';
    echo "</tr>";
    do_action('right_now_content_table_end');
    echo "\n\t</table>\n\t</div>";
    echo "\n\t" . '<div class="table table_discussion">';
    echo "\n\t" . '<p class="sub">' . __('Discussion') . '</p>' . "\n\t" . '<table>';
    echo "\n\t" . '<tr class="first">';
    // Total Comments
    $num = '<span class="total-count">' . number_format_i18n($num_comm->total_comments) . '</span>';
    $text = _n('Comment', 'Comments', $num_comm->total_comments);
    if (current_user_can('moderate_comments')) {
        $num = '<a href="edit-comments.php">' . $num . '</a>';
        $text = '<a href="edit-comments.php">' . $text . '</a>';
    }
    echo '<td class="b b-comments">' . $num . '</td>';
    echo '<td class="last t comments">' . $text . '</td>';
    echo '</tr><tr>';
    // Approved Comments
    $num = '<span class="approved-count">' . number_format_i18n($num_comm->approved) . '</span>';
    $text = _nx('Approved', 'Approved', $num_comm->approved, 'Right Now');
    if (current_user_can('moderate_comments')) {
        $num = "<a href='edit-comments.php?comment_status=approved'>{$num}</a>";
        $text = "<a class='approved' href='edit-comments.php?comment_status=approved'>{$text}</a>";
    }
    echo '<td class="b b_approved">' . $num . '</td>';
    echo '<td class="last t">' . $text . '</td>';
    echo "</tr>\n\t<tr>";
    // Pending Comments
    $num = '<span class="pending-count">' . number_format_i18n($num_comm->moderated) . '</span>';
    $text = _n('Pending', 'Pending', $num_comm->moderated);
    if (current_user_can('moderate_comments')) {
        $num = "<a href='edit-comments.php?comment_status=moderated'>{$num}</a>";
        $text = "<a class='waiting' href='edit-comments.php?comment_status=moderated'>{$text}</a>";
    }
    echo '<td class="b b-waiting">' . $num . '</td>';
    echo '<td class="last t">' . $text . '</td>';
    echo "</tr>\n\t<tr>";
    // Spam Comments
    $num = number_format_i18n($num_comm->spam);
    $text = _nx('Spam', 'Spam', $num_comm->spam, 'comment');
    if (current_user_can('moderate_comments')) {
        $num = "<a href='edit-comments.php?comment_status=spam'><span class='spam-count'>{$num}</span></a>";
        $text = "<a class='spam' href='edit-comments.php?comment_status=spam'>{$text}</a>";
    }
    echo '<td class="b b-spam">' . $num . '</td>';
    echo '<td class="last t">' . $text . '</td>';
    echo "</tr>";
    do_action('right_now_table_end');
    do_action('right_now_discussion_table_end');
    echo "\n\t</table>\n\t</div>";
    echo "\n\t" . '<div class="versions">';
    $theme = wp_get_theme();
    echo "\n\t<p>";
    if ($theme->errors()) {
        if (!is_multisite() || is_super_admin()) {
            echo '<span class="error-message">' . sprintf(__('ERROR: %s'), $theme->errors()->get_error_message()) . '</span>';
        }
    } elseif (!empty($wp_registered_sidebars)) {
        $sidebars_widgets = wp_get_sidebars_widgets();
        $num_widgets = 0;
        foreach ((array) $sidebars_widgets as $k => $v) {
            if ('wp_inactive_widgets' == $k || 'orphaned_widgets' == substr($k, 0, 16)) {
                continue;
            }
            if (is_array($v)) {
                $num_widgets = $num_widgets + count($v);
            }
        }
        $num = number_format_i18n($num_widgets);
        $switch_themes = $theme->display('Name');
        if (current_user_can('switch_themes')) {
            $switch_themes = '<a href="themes.php">' . $switch_themes . '</a>';
        }
        if (current_user_can('edit_theme_options')) {
            printf(_n('Theme <span class="b">%1$s</span> with <span class="b"><a href="widgets.php">%2$s Widget</a></span>', 'Theme <span class="b">%1$s</span> with <span class="b"><a href="widgets.php">%2$s Widgets</a></span>', $num_widgets), $switch_themes, $num);
        } else {
            printf(_n('Theme <span class="b">%1$s</span> with <span class="b">%2$s Widget</span>', 'Theme <span class="b">%1$s</span> with <span class="b">%2$s Widgets</span>', $num_widgets), $switch_themes, $num);
        }
    } else if (current_user_can('switch_themes')) {
        printf(__('Theme <span class="b"><a href="themes.php">%1$s</a></span>'), $theme->display('Name'));
    } else {
        printf(__('Theme <span class="b">%1$s</span>'), $theme->display('Name'));
    }
    echo '</p>';
    // Check if search engines are asked not to index this site.
    if (!is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public')) {
        $title = apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content'));
        $content = apply_filters('privacy_on_link_text', __('Search Engines Discouraged'));
        echo "<p><a href='options-reading.php' title='{$title}'>{$content}</a></p>";
    }
    update_right_now_message();
    echo "\n\t" . '<br class="clear" /></div>';
    do_action('rightnow_end');
    do_action('activity_box_end');
}