Browse Source

Merge pull request #1439 from Automattic/fix/issue-1401

Varia: Fix privacy policy positioning
Allan Cole 5 years ago
parent
commit
79cf14a8b3
1 changed files with 8 additions and 10 deletions
  1. 8 10
      varia/footer.php

+ 8 - 10
varia/footer.php

@@ -22,10 +22,6 @@
 				$template->output_template_content( A8C\FSE\WP_Template::FOOTER );
 			else : // Otherwise we'll fallback to the default Varia footer below.
 				get_template_part( 'template-parts/footer/footer', 'widgets' );
-				
-				if ( function_exists( 'the_privacy_policy_link' ) ) {
-					the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
-				}
 
 				if ( has_nav_menu( 'menu-2' ) ) : ?>
 					<nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'varia' ); ?>">
@@ -48,12 +44,14 @@
 			<?php if ( ! empty( $blog_info ) ) : ?>
 				<a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a><span class="comma">,</span>
 			<?php endif; ?>
-			<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'varia' ) ); ?>" class="imprint">
-				<?php
-				/* translators: %s: WordPress. */
-				printf( __( 'proudly powered by %s.', 'varia' ), 'WordPress' );
-				?>
-			</a>
+			<?php /* translators: 1: WordPress link, 2: WordPress. */
+			printf( '<a href="%1$s" class="imprint">proudly powered by %2$s</a>.',
+				esc_url( __( 'https://wordpress.org/', 'varia' ) ),
+				'WordPress'
+			); ?>
+			<?php if ( function_exists( 'the_privacy_policy_link' ) ) {
+				the_privacy_policy_link();
+			} ?>
 		</div><!-- .site-info -->
 	</footer><!-- #colophon -->