Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-trackback.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
echo '<?xml version="1.0" encoding="utf-8"?' . ">\n";
echo "<response>\n";
echo "<error>1</error>\n";
echo "<message>$error_message</message>\n";
echo "<message>" . esc_xml( $error_message ) . "</message>\n";

Check failure on line 37 in src/wp-trackback.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

String "<message>" does not require double quotes; use single quotes instead
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To resolve the PHPCS complaint:

Suggested change
echo "<message>" . esc_xml( $error_message ) . "</message>\n";
echo '<message>' . esc_xml( $error_message ) . "</message>\n";

echo '</response>';
die();
} else {
Expand Down
Loading