Only show publish promo to users that can publish

In our no-results template, there's no point in displaying a "publish your first post" promo to users that don't have the ability to publish posts since they can't act on it.
This commit is contained in:
Mohammad Jangda 2012-08-31 17:43:21 -03:00
parent 7fef5cd2ec
commit f00245be92
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
</header><!-- .entry-header -->
<div class="entry-content">
<?php if ( is_home() ) : ?>
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ), admin_url( 'post-new.php' ) ); ?></p>