forked from mirror/_s
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:
parent
7fef5cd2ec
commit
f00245be92
|
@ -15,7 +15,7 @@
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .entry-header -->
|
||||||
|
|
||||||
<div class="entry-content">
|
<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>
|
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ), admin_url( 'post-new.php' ) ); ?></p>
|
||||||
|
|
||||||
|
|
Reference in New Issue