Plugin Directory

Changeset 1571821


Ignore:
Timestamp:
01/10/2017 12:29:43 PM (9 years ago)
Author:
designerbydesign
Message:

1.1.6

  • Fixed non-english character entities in post titles.
  • Fixed saving configuration options arrays.
Location:
xml-news-sitemap/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • xml-news-sitemap/trunk/gns_xml.php

    r1552460 r1571821  
    77Plugin URI: https://www.jnorton.co.uk/wordpress-google-news-xml-sitemap-plugin
    88Description: 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.5
     9Version: 1.1.6
    1010*/
    1111
     
    1818    {
    1919
    20         var $version = '1.1.4';
     20        var $version = '1.1.6';
    2121        var $settings = array();
    2222        public static $sitemap_url = '';
     
    118118                } else {
    119119                    if(isset($_POST['gns_xml_custom_post_types'])){
     120                        $settings['gns_xml_custom_post_types'] = array();
    120121                        foreach($_POST["gns_xml_custom_post_types"] as $option){
    121122                            $settings['gns_xml_custom_post_types'][] = sanitize_text_field($option);
     
    123124                    }
    124125                    if(isset($_POST["post_category"]) && is_array($_POST["post_category"])){
     126                        $settings['gns_xml_cats'] = array();
    125127                        foreach($_POST["post_category"] as $option){
    126128                            $settings['gns_xml_cats'][] = sanitize_text_field($option);
     
    131133                    }
    132134                    if(isset($_POST["gns_xml_genres"]) && is_array($_POST["gns_xml_genres"])){
     135                        $settings['gns_xml_genres'] = array();
    133136                        foreach($_POST["gns_xml_genres"] as $option){
    134137                            $settings['gns_xml_genres'][] = sanitize_text_field($option);
  • xml-news-sitemap/trunk/lib/template/gns_xml_output.php

    r1344021 r1571821  
    6868        $keywords = array();
    6969        $title = get_the_title();
    70         $title = iconv('UTF-8', 'ASCII//TRANSLIT', $title);
     70        //$title = iconv('UTF-8', 'ASCII//TRANSLIT', $title);
    7171
    7272        if($tags){
  • xml-news-sitemap/trunk/readme.txt

    r1552461 r1571821  
    2828== Changelog ==
    2929
     30= 1.1.6 =
     31* Fixed non-english character entities in post titles.
     32* Fixed saving configuration options arrays.
     33
    3034= 1.1.5 =
    3135* Fixed PHP warning on Add Post screen.
Note: See TracChangeset for help on using the changeset viewer.