瀏覽代碼

Removing anchors from translatable text

And some otherwise tidy up
Jordan 4 年之前
父節點
當前提交
8a38616295
共有 1 個文件被更改,包括 15 次插入12 次删除
  1. 15 12
      seedlet/template-parts/content/content-none.php

+ 15 - 12
seedlet/template-parts/content/content-none.php

@@ -19,25 +19,28 @@
 		<?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>
+			<?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(
 			<?php printf(
-				'<p>' . wp_kses(
-					/* translators: 1: link to WP admin new post page. 2: class for anchor */
-					__( '<a href="%1$s" class="%2$s">Add or publish Posts</a>', 'seedlet' ),
+				'<p>' 
+				. wp_kses('<a href="%1$s" class="button">',
 					array(
 					array(
 						'a' => array(
 						'a' => array(
 							'href' => array(),
 							'href' => array(),
-							'class' => 'button',
-						),
-					)
-				) . '</p>',
-				esc_url( admin_url( 'edit.php' ) ),
-				'button',
-
+							'class' => 'button'
+						)
+					)					
+				) ,
+				esc_url( admin_url( 'edit.php' ) )
 			);
 			);
+			
+			/* translators: 1: link to WP admin new post page. 2: class for anchor */
+			 _e( 'Add or publish Posts', 'seedlet' ); ?>
+			
+			</a></p>
 
 
-		elseif ( is_search() ) :
+		<?php elseif ( is_search() ) :
 			?>
 			?>
 
 
 			<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'seedlet' ); ?></p>
 			<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'seedlet' ); ?></p>