close

Making WordPress.org

Changeset 14715


Ignore:
Timestamp:
03/13/2026 08:23:47 PM (3 weeks ago)
Author:
obenland
Message:

WP.org Abilities: Skip HelpScout emails predating the current submission.

Props frantorres.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/tools/class-get-plugin-status.php

    r14714 r14715  
    271271        }
    272272
    273         $feedback = array();
     273        $feedback       = array();
     274        $submitted_date = (int) get_post_meta( $post->ID, '_submitted_date', true );
    274275
    275276        foreach ( $emails as $email ) {
     277            // Skip emails from prior submissions that happened to share this slug.
     278            if ( $submitted_date && strtotime( $email->created ) < $submitted_date ) {
     279                continue;
     280            }
     281
    276282            $threads = self::get_conversation_threads( (int) $email->id );
    277283
Note: See TracChangeset for help on using the changeset viewer.