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
14 changes: 14 additions & 0 deletions core-google-topic.atom.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
require_once __DIR__ . '/google/google-functions.php';

$pub_date = date("c", strtotime( $pub_date ) );
Copy link
Owner

Choose a reason for hiding this comment

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

🚫 Error: date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead (WordPress.DateTime.RestrictedFunctions.date_date).

$last_build_date = date("c", strtotime( $last_build_date ) );
Copy link
Owner

Choose a reason for hiding this comment

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

🚫 Error: date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead (WordPress.DateTime.RestrictedFunctions.date_date).

?><?xml version="1.0" encoding="utf-8"?>
Copy link
Owner

Choose a reason for hiding this comment

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

⚠️ Warning: Possible use of short open tags detected; found: <?xml version="1.0" encoding="utf-8"?>\n (Generic.PHP.DisallowShortOpenTag.PossibleFound).

<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:media="http://search.yahoo.com/mrss/"
xmlns:g="http://schemas.google.com/pcn/2020">
<title><?php echo esc_html( $site_name ); ?></title>
Copy link
Owner

Choose a reason for hiding this comment

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

⚠️ Warning: Variable $site_name is undefined (VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable).

<link rel="self" href="<?php echo esc_url( $feed_url ); ?>"/>
Copy link
Owner

Choose a reason for hiding this comment

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

⚠️ Warning: Variable $feed_url is undefined (VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable).

<?php content_feed_render_single_panel( $post_ids, $feed_title ); ?>
Copy link
Owner

Choose a reason for hiding this comment

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

⚠️ Warning: Variable $post_ids is undefined (VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable).

Copy link
Owner

Choose a reason for hiding this comment

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

⚠️ Warning: Variable $feed_title is undefined (VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable).

</feed>
<?php