pre flight commit, BOOM. hat tip: rboren.
git-svn-id: https://develop.svn.wordpress.org/trunk@6462 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fa1f09bcb3
commit
c8e824c3fe
|
@ -28,7 +28,7 @@ $today = current_time('mysql', 1);
|
||||||
<h2><?php _e('Dashboard'); ?></h2>
|
<h2><?php _e('Dashboard'); ?></h2>
|
||||||
|
|
||||||
<div id="rightnow">
|
<div id="rightnow">
|
||||||
<h3><?php _e('Right Now'); ?> <a href="post-new.php"><?php _e('Write a New Page'); ?></a> <a href="page-new.php"><?php _e('Write a New Post'); ?></a></h3>
|
<h3><?php _e('Right Now'); ?> <a href="post-new.php"><?php _e('Write a New Post'); ?></a> <a href="page-new.php"><?php _e('Write a New Page'); ?></a></h3>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$num_posts = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'" );
|
$num_posts = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'" );
|
||||||
|
|
Loading…
Reference in New Issue