Changeset 1571821
- Timestamp:
- 01/10/2017 12:29:43 PM (9 years ago)
- Location:
- xml-news-sitemap/trunk
- Files:
-
- 3 edited
-
gns_xml.php (modified) (5 diffs)
-
lib/template/gns_xml_output.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
xml-news-sitemap/trunk/gns_xml.php
r1552460 r1571821 7 7 Plugin URI: https://www.jnorton.co.uk/wordpress-google-news-xml-sitemap-plugin 8 8 Description: This plugin provides a Google News XML Sitemap for WordPress that lists the most recent 1000 articles published in the past two days that are marked to be included in an auto-generated Google Sitemap News XML file in accordance with the standards detailed on the Creating a Google News sitemap page here: https://support.google.com/news/publisher/answer/74288?hl=en-GB 9 Version: 1.1. 59 Version: 1.1.6 10 10 */ 11 11 … … 18 18 { 19 19 20 var $version = '1.1. 4';20 var $version = '1.1.6'; 21 21 var $settings = array(); 22 22 public static $sitemap_url = ''; … … 118 118 } else { 119 119 if(isset($_POST['gns_xml_custom_post_types'])){ 120 $settings['gns_xml_custom_post_types'] = array(); 120 121 foreach($_POST["gns_xml_custom_post_types"] as $option){ 121 122 $settings['gns_xml_custom_post_types'][] = sanitize_text_field($option); … … 123 124 } 124 125 if(isset($_POST["post_category"]) && is_array($_POST["post_category"])){ 126 $settings['gns_xml_cats'] = array(); 125 127 foreach($_POST["post_category"] as $option){ 126 128 $settings['gns_xml_cats'][] = sanitize_text_field($option); … … 131 133 } 132 134 if(isset($_POST["gns_xml_genres"]) && is_array($_POST["gns_xml_genres"])){ 135 $settings['gns_xml_genres'] = array(); 133 136 foreach($_POST["gns_xml_genres"] as $option){ 134 137 $settings['gns_xml_genres'][] = sanitize_text_field($option); -
xml-news-sitemap/trunk/lib/template/gns_xml_output.php
r1344021 r1571821 68 68 $keywords = array(); 69 69 $title = get_the_title(); 70 $title = iconv('UTF-8', 'ASCII//TRANSLIT', $title);70 //$title = iconv('UTF-8', 'ASCII//TRANSLIT', $title); 71 71 72 72 if($tags){ -
xml-news-sitemap/trunk/readme.txt
r1552461 r1571821 28 28 == Changelog == 29 29 30 = 1.1.6 = 31 * Fixed non-english character entities in post titles. 32 * Fixed saving configuration options arrays. 33 30 34 = 1.1.5 = 31 35 * Fixed PHP warning on Add Post screen.
Note: See TracChangeset
for help on using the changeset viewer.