Browse Source

Tidy up formatting of link and notice

Jordan 4 years ago
parent
commit
17aa36dd48
1 changed files with 8 additions and 10 deletions
  1. 8 10
      varia/template-parts/content/content-none.php

+ 8 - 10
varia/template-parts/content/content-none.php

@@ -20,17 +20,15 @@
 		<?php
 		<?php
 		if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
 		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>
 			<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>
-
-			<?php printf(
-				'<p>' 
-				. wp_kses('<a href="%1$s" class="button">',
-					array(
-						'a' => array(
-							'href' => array(),
-							'class' => 'button'
-						)
+				<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>		)
 					)					
 					)					
 				) ,
 				) ,
 				esc_url( admin_url( 'edit.php' ) )
 				esc_url( admin_url( 'edit.php' ) )