Plugin Directory

Changeset 2833944


Ignore:
Timestamp:
12/14/2022 05:08:12 PM (2 years ago)
Author:
josephscott
Message:

Only output the cloud element when we are in a feed - the rss2_head hook also runs for exports

Location:
rsscloud/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rsscloud/trunk/readme.txt

    r2833939 r2833944  
    1717* Updates to support PHP 8+
    1818* Check for http scheme in the $notify_url, add it if missing
     19* Only output the cloud element when we are in a feed - the rss2_head hook also runs for exports
    1920
    2021= 0.4.2 =
  • rsscloud/trunk/rsscloud.php

    r2833907 r2833944  
    6565add_action( 'rss2_head', 'rsscloud_add_rss_cloud_element' );
    6666function rsscloud_add_rss_cloud_element( ) {
     67    if ( !is_feed() ) {
     68        return;
     69    }
     70
    6771    $cloud = parse_url( get_option( 'home' ) . '/?rsscloud=notify' );
    6872
Note: See TracChangeset for help on using the changeset viewer.