Conversation
ariskataoka
left a comment
There was a problem hiding this comment.
phpcs scanning turned up:
🚫 2 errors
hashes-api-scanning skipped
| <?php | ||
| require_once __DIR__ . '/google/google-functions.php'; | ||
|
|
||
| $pub_date = date("c", strtotime( $pub_date ) ); |
There was a problem hiding this comment.
🚫 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).
| require_once __DIR__ . '/google/google-functions.php'; | ||
|
|
||
| $pub_date = date("c", strtotime( $pub_date ) ); | ||
| $last_build_date = date("c", strtotime( $last_build_date ) ); |
There was a problem hiding this comment.
🚫 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).
|
|
||
| $pub_date = date("c", strtotime( $pub_date ) ); | ||
| $last_build_date = date("c", strtotime( $last_build_date ) ); | ||
| ?><?xml version="1.0" encoding="utf-8"?> |
There was a problem hiding this comment.
| <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> |
There was a problem hiding this comment.
| xmlns:media="http://search.yahoo.com/mrss/" | ||
| xmlns:g="http://schemas.google.com/pcn/2020"> | ||
| <title><?php echo esc_html( $site_name ); ?></title> | ||
| <link rel="self" href="<?php echo esc_url( $feed_url ); ?>"/> |
There was a problem hiding this comment.
| xmlns:g="http://schemas.google.com/pcn/2020"> | ||
| <title><?php echo esc_html( $site_name ); ?></title> | ||
| <link rel="self" href="<?php echo esc_url( $feed_url ); ?>"/> | ||
| <?php content_feed_render_single_panel( $post_ids, $feed_title ); ?> |
There was a problem hiding this comment.
| xmlns:g="http://schemas.google.com/pcn/2020"> | ||
| <title><?php echo esc_html( $site_name ); ?></title> | ||
| <link rel="self" href="<?php echo esc_url( $feed_url ); ?>"/> | ||
| <?php content_feed_render_single_panel( $post_ids, $feed_title ); ?> |
There was a problem hiding this comment.
No description provided.