Making WordPress.org


Ignore:
Timestamp:
08/07/2019 10:45:11 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Track plugin ownership change in audit log.

Props Ipstenu, SergeyBiryukov.
Fixes #4663.

File:
1 edited

Legend:

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

    r9042 r9094  
    15191519            wp_cache_set( $result, $slug, 'plugin-slugs' );
    15201520            $result = get_post( $result );
     1521
     1522            $owner = get_userdata( $result->post_author );
     1523
     1524            Admin\Status_Transitions::instance()->audit_log( sprintf(
     1525                'Submitted by <a href="%s">%s</a>.',
     1526                esc_url( '//profiles.wordpress.org/' . $owner->user_nicename ),
     1527                $owner->user_login
     1528            ), $result->ID );
    15211529        }
    15221530
Note: See TracChangeset for help on using the changeset viewer.