| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | +global $wp_version; | |
| 2 | 3 | $xml_data = '<?xml version="1.0" encoding="UTF-8" ?>'; |
| 3 | -$xml_data .= '<!-- generator="WordPress/3.9" created="2014-04-25 14:19" -->'; | |
| 4 | +$xml_data .= sprintf( '<!-- generator="WordPress/%s" created="%s" -->', $wp_version, date( 'Y-m-d H:i:s' ) ); | |
| 4 | 5 | $xml_data .= '<rss version="2.0" |
| 5 | 6 | xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/" |
| 6 | 7 | xmlns:content="http://purl.org/rss/1.0/modules/content/" |
| 7 | 8 | xmlns:wfw="http://wellformedweb.org/CommentAPI/" |
| @@ -29,9 +30,9 @@ | ||
| 29 | 30 | <wp:author_last_name><![CDATA[' . get_the_author_meta( 'user_lastname', $data['post']->post_author ) . ']]></wp:author_last_name> |
| 30 | 31 | </wp:author>'; |
| 31 | 32 | |
| 32 | 33 | |
| 33 | - $xml_data .= '<generator>https://wordpress.org/?v=5.3.2</generator>'; | |
| 34 | + $xml_data .= '<generator>https://wordpress.org</generator>'; | |
| 34 | 35 | $xml_data .= '<item>'; |
| 35 | 36 | $xml_data .= '<title>' . $data['post']->post_title . '</title>'; |
| 36 | 37 | |
| 37 | 38 | |