Skip to content

Commit

Permalink
Merge pull request #1837 from ampproject/remove/classic-template-foot…
Browse files Browse the repository at this point in the history
…er-credit

Remove Powered by WordPress in classic footer template
  • Loading branch information
westonruter committed Jan 24, 2019
2 parents 158855d + f9ef326 commit 1346e7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions includes/amp-post-template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function amp_post_template_init_hooks() {
add_action( 'amp_post_template_head', 'amp_post_template_add_boilerplate_css' );
add_action( 'amp_post_template_head', 'amp_print_schemaorg_metadata' );
add_action( 'amp_post_template_head', 'amp_add_generator_metadata' );
add_action( 'amp_post_template_head', 'wp_generator' );
add_action( 'amp_post_template_css', 'amp_post_template_add_styles', 99 );
add_action( 'amp_post_template_data', 'amp_post_template_add_analytics_script' );
add_action( 'amp_post_template_footer', 'amp_post_template_add_analytics_data' );
Expand Down
8 changes: 0 additions & 8 deletions templates/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
<footer class="amp-wp-footer">
<div>
<h2><?php echo esc_html( wptexturize( $this->get( 'blog_name' ) ) ); ?></h2>
<p>
<a href="<?php echo esc_url( esc_html__( 'https://wordpress.org/', 'amp' ) ); ?>">
<?php
// translators: %s is WordPress.
echo esc_html( sprintf( __( 'Powered by %s', 'amp' ), 'WordPress' ) );
?>
</a>
</p>
<a href="#top" class="back-to-top"><?php esc_html_e( 'Back to top', 'amp' ); ?></a>
</div>
</footer>

0 comments on commit 1346e7c

Please sign in to comment.