Skip to content

Commit 4face9d

Browse files
committed
releases.jquery.com: fix broken powered by img
This hardcoded path works fine on the (old) production server, but on staging, locally, and on the (new) production server this is a 404 Not Found. Reference this in a way that lets WordPress control where this URL is in actuality. This matches the way other images and stylesheets are referenced throughout the repo, this was the only case of a hardcoded path that I could find.
1 parent 1b40f86 commit 4face9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/releases.jquery.com/page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div id="content">
3939
<?php if ( !count( get_post_meta( $post->ID, "hide_title" ) ) ) : ?>
4040
<h1 class="entry-title"><?php the_title(); ?></h1>
41-
<div class="powered-by">Powered by <a href="https://www.stackpath.com"><img src="/jquery-wp-content/themes/jquery/images/stackpath.png"></a></div>
41+
<div class="powered-by">Powered by <a href="https://www.stackpath.com"><img src="<?php echo get_template_directory_uri(); ?>/images/stackpath.png"></a></div>
4242
<hr>
4343
<?php endif; ?>
4444

0 commit comments

Comments
 (0)