Plugin Directory

Changeset 3491327


Ignore:
Timestamp:
03/26/2026 12:01:04 AM (10 days ago)
Author:
rankauthority
Message:

Release 1.0.36: RSS ping when posting / updating

Location:
rank-authority
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • rank-authority/trunk/rank-authority.php

    r3485183 r3491327  
    44 * Plugin URI: https://rankauthority.com/plugins/rankauthority
    55 * Description: Secure API connector to publish posts / overwrite posts from the RA Dashboard to WordPress. Token reset now available to all administrators.
    6  * Version: 1.0.35
     6 * Version: 1.0.36
    77 * Author: Rank Authority
    88 * Author URI: https://rankauthority.com
     
    4040        add_action('wp_head', [$this, 'output_custom_css'], 5);
    4141        add_action('wp_head', [$this, 'output_social_meta_tags'], 2);
     42        add_action('pre_get_posts', [$this, 'optimize_feed_for_indexing']);
    4243    }
    4344
     
    28032804        }
    28042805    }
     2806
     2807    /** Sort RSS feed by modified date so updated posts appear first for faster Google discovery */
     2808    public function optimize_feed_for_indexing($query) {
     2809        if ($query->is_feed() && $query->is_main_query()) {
     2810            $query->set('orderby', 'modified');
     2811            $query->set('order', 'DESC');
     2812            $query->set('posts_per_rss', 50);
     2813        }
     2814    }
    28052815}
    28062816
  • rank-authority/trunk/readme.txt

    r3485183 r3491327  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.0.35
     7Stable tag: 1.0.36
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    137137
    138138== Changelog ==
     139
     140= 1.0.36 =
     141* RSS / Atom feeds: main site feed orders posts by last modified date (newest changes first) instead of publish date only
     142* Feed requests up to 50 items per request so recently updated posts surface faster for crawlers and subscribers
    139143
    140144= 1.0.35 =
     
    346350== Upgrade Notice ==
    347351
     352= 1.0.36 =
     353RSS and Atom feeds now sort by modified date with a higher default item count so updates are discovered sooner. No dashboard or API changes required.
     354
    348355= 1.0.35 =
    349356PUT response now always includes schema for consistency. Use the response to verify stored structured data regardless of whether schema was sent in the request.
Note: See TracChangeset for help on using the changeset viewer.