Plugin Directory

Changeset 1138247


Ignore:
Timestamp:
04/19/2015 12:04:47 AM (11 years ago)
Author:
foralien
Message:

Fixes for wrong custom URL behaviour on existing installs

Location:
yandexnews-feed-by-teplitsa/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • yandexnews-feed-by-teplitsa/trunk/inc/admin.php

    r1138170 r1138247  
    138138       
    139139        $value = trailingslashit(get_option('layf_custom_url', 'yandex/news'));
     140           
    140141        update_option('layf_permalinks_flushed', 0); //is it ok?
    141142       
  • yandexnews-feed-by-teplitsa/trunk/inc/feed.php

    r1138170 r1138247  
    6464<media:group>
    6565<media:content url=""/>
    66 <media player url="<?php echo esc_url($media_obj['url']);?>"/>
     66<media:player url="<?php echo esc_url($media_obj['url']);?>" />
    6767<?php if(!empty($media_obj['thumb'])) { ?>
    6868<media:thumbnail url="<?php echo esc_url($media_obj['thumb']);?>"/>
  • yandexnews-feed-by-teplitsa/trunk/inc/tst-yandex-feed-core.php

    r1138170 r1138247  
    8989       
    9090        //custom
    91         $slug = trailingslashit(get_option('layf_custom_url', 'yandex/news'));
    92         if($slug != 'yandex/news/'){
     91        $slug = trailingslashit(get_option('layf_custom_url', 'yandex/news')); //var_dump($slug);
     92       
     93        if(!empty($slug) && $slug != '/' && $slug != 'yandex/news/'){
    9394            add_rewrite_rule("^$slug?", 'index.php?yandex_feed=news', 'top');
    9495        }
  • yandexnews-feed-by-teplitsa/trunk/readme.txt

    r1138170 r1138247  
    105105== Changelog ==
    106106
     107= 1.8.1 =
     108* Fix: Incorrect custom URL behaviour on existing installs
     109
    107110= 1.8 =
    108111* New: Support for YouTube video embedded in the post content
  • yandexnews-feed-by-teplitsa/trunk/tst-yandex-feed.php

    r1138170 r1138247  
    33Plugin Name: Yandex.News Feed by Teplitsa
    44Description: The plugin creates feed for Yandex.News service
    5 Version: 1.8
     5Version: 1.8.1
    66Author: Teplitsa
    77Author URI: http://te-st.ru/
Note: See TracChangeset for help on using the changeset viewer.