WordPress.org

Making WordPress.org

Changeset 5910


Ignore:
Timestamp:
09/11/2017 02:15:58 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Clear support reps cache when adding or deleting a support rep.

See #3029.

File:
1 edited

Legend:

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

    r5867 r5910  
    276276        $result = wp_add_object_terms( $post->ID, $user->user_nicename, 'plugin_support_reps' );
    277277
     278        wp_cache_delete( $plugin_slug, 'plugin-support-reps' );
     279
    278280        return $result;
    279281    }
     
    304306
    305307        $result = wp_remove_object_terms( $post->ID, $user->user_nicename, 'plugin_support_reps' );
     308
     309        wp_cache_delete( $plugin_slug, 'plugin-support-reps' );
    306310
    307311        return $result;
Note: See TracChangeset for help on using the changeset viewer.