Plugin Directory

Changeset 1668812


Ignore:
Timestamp:
06/01/2017 02:31:58 PM (9 years ago)
Author:
signalfade
Message:

Fixed main feed after check for category failed to keep single. Increment

Location:
json-feeder/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • json-feeder/trunk/json-feeder.php

    r1668140 r1668812  
    55Description: Adds a new type of feed you can subscribe to. http://example.com/feed/json or http://example.com/?feed=json to anywhere you get a JSON form.
    66Author: signalfade
    7 Version: 1.0.5
     7Version: 1.0.6
    88
    99License:
  • json-feeder/trunk/readme.txt

    r1668140 r1668812  
    44Requires at least: 4.0
    55Tested up to: 4.7.5
    6 Stable tag: 1.0.5
     6Stable tag: 1.0.6
    77
    88Adds a feed based on the jsonfeed.org standard that one can subscribe to or parse.
  • json-feeder/trunk/template/json-feeder.php

    r1668140 r1668812  
    66$callback = trim(esc_html(get_query_var('callback')));
    77$charset  = get_option('blog_charset');
    8 if(strpos($_SERVER['REQUEST_URI'], 'feed/json')!==false && isset($post->ID) && !empty($post->ID) && !is_category()) {
     8if(strpos($_SERVER['REQUEST_URI'], 'feed/json')!==false && isset($post->ID) && !empty($post->ID) && !is_category() && is_single()) {
    99        $site_description = get_bloginfo('description');
    1010
Note: See TracChangeset for help on using the changeset viewer.