esc_url for wordpress link in footer

This commit is contained in:
AlxMedia 2021-08-15 12:12:42 +02:00
parent 152135dfb1
commit 8ca1d604c4
2 changed files with 6 additions and 2 deletions

View file

@ -63,7 +63,7 @@
<?php if ( get_theme_mod( 'credit', 'on' ) == 'on' ): ?>
<div id="credit">
<p><?php esc_html_e('Powered by','textdash'); ?> <a href="http://wordpress.org" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','textdash'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p>
<p><?php esc_html_e('Powered by','textdash'); ?> <a href="<?php esc_url( __( 'https://wordpress.org', 'textdash' ) ); ?>" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','textdash'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p>
</div><!--/#credit-->
<?php endif; ?>

View file

@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Textdash\n"
"POT-Creation-Date: 2021-08-15 12:09+0200\n"
"POT-Creation-Date: 2021-08-15 12:12+0200\n"
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -51,6 +51,10 @@ msgstr ""
msgid "Powered by"
msgstr ""
#: footer.php:66
msgid "https://wordpress.org"
msgstr ""
#: footer.php:66
msgid "Theme by"
msgstr ""