-
Notifications
You must be signed in to change notification settings - Fork 0
Test xml + php #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Test xml + php #11
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 ) ); | ||
| $last_build_date = date("c", strtotime( $last_build_date ) ); | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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"?> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <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> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <link rel="self" href="<?php echo esc_url( $feed_url ); ?>"/> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <?php content_feed_render_single_panel( $post_ids, $feed_title ); ?> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| </feed> | ||
| <?php | ||
There was a problem hiding this comment.
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).