Making WordPress.org

Changeset 10054


Ignore:
Timestamp:
07/10/2020 06:58:39 AM (4 years ago)
Author:
tellyworth
Message:

Plugin directory: queue an import when adding plugins to the block directory.

See #5303

File:
1 edited

Legend:

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

    r10053 r10054  
    55use WordPressdotorg\Plugin_Directory\Plugin_Directory;
    66use WordPressdotorg\Plugin_Directory\Tools;
     7use WordPressdotorg\Plugin_Directory\Jobs\Plugin_Import;
    78
    89class Block_Validator {
     
    4647                                Tools::audit_log( 'Plugin added to block directory.', $post->ID );
    4748                                self::maybe_send_email_plugin_added( $post );
     49                                Plugin_Import::queue( $post->post_name, array( 'tags_touched' => $post->stable_tag ) );
    4850                            } elseif ( 'remove' === $_POST['block-directory-edit'] ) {
    4951                                Tools::audit_log( 'Plugin removed from block directory.', $post->ID );
Note: See TracChangeset for help on using the changeset viewer.