Making WordPress.org

Changeset 10055


Ignore:
Timestamp:
07/10/2020 07:11:59 AM (5 years ago)
Author:
dd32
Message:

Plugin directory: When queueing a plugin for import after being added to the Block Directory, pass the tags_touched property as an array.

See [10054].
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

    r10054 r10055  
    4747                                Tools::audit_log( 'Plugin added to block directory.', $post->ID );
    4848                                self::maybe_send_email_plugin_added( $post );
    49                                 Plugin_Import::queue( $post->post_name, array( 'tags_touched' => $post->stable_tag ) );
     49                                Plugin_Import::queue( $post->post_name, array( 'tags_touched' => array( $post->stable_tag ) ) );
    5050                            } elseif ( 'remove' === $_POST['block-directory-edit'] ) {
    5151                                Tools::audit_log( 'Plugin removed from block directory.', $post->ID );
Note: See TracChangeset for help on using the changeset viewer.