Browse Source

Revert previous change made on wrong branch

Jordan 4 years ago
parent
commit
91d21439d2
1 changed files with 16 additions and 13 deletions
  1. 16 13
      varia/template-parts/content/content-none.php

+ 16 - 13
varia/template-parts/content/content-none.php

@@ -18,19 +18,22 @@
 
 
 	<div class="page-content responsive-max-width">
 	<div class="page-content responsive-max-width">
 		<?php
 		<?php
-		if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
-
-			<p>
-			<?php _e( "Your site is set to show the the most recent posts on your homepage - but you don't have any Posts published.", 'seedlet' ); ?></p>
-
-			<p>
-				<a href="<?php  echo esc_url( admin_url( 'edit.php' ) ); ?>" class="button">
-			<?php /* translators: 1: link to WP admin new post page. */
-			 _e( 'Add or publish Posts', 'seedlet' ); ?>
-				</a>
-			</p>
-
-		<?php elseif ( is_search() ) :
+		if ( is_home() && current_user_can( 'publish_posts' ) ) :
+
+			printf(
+				'<p>' . wp_kses(
+					/* translators: 1: link to WP admin new post page. */
+					__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'varia' ),
+					array(
+						'a' => array(
+							'href' => array(),
+						),
+					)
+				) . '</p>',
+				esc_url( admin_url( 'post-new.php' ) )
+			);
+
+		elseif ( is_search() ) :
 			?>
 			?>
 
 
 			<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'varia' ); ?></p>
 			<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'varia' ); ?></p>